Skip to content

Commit

Permalink
imp: Fixed a single default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Byloth committed Dec 5, 2024
1 parent d25b9a0 commit c4aea40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@byloth/core",
"version": "2.0.0-rc.9",
"version": "2.0.0-rc.10",
"description": "An unopinionated collection of useful functions and classes that I use widely in all my projects. 🔧",
"keywords": [
"Core",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = "2.0.0-rc.9";
export const VERSION = "2.0.0-rc.10";

export type { Constructor, Interval, Timeout } from "./core/types.js";

Expand Down
2 changes: 1 addition & 1 deletion src/models/callbacks/switchable-callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class SwitchableCallback<T extends Callback<any[], any> = Callbac
this._callback = ((_default) as unknown) as T;
this._callbacks = new Map<string, T>();

this._isEnabled = false;
this._isEnabled = true;
this._key = "";

this.invoke = (...args: Parameters<T>): ReturnType<T> => this._callback(...args);
Expand Down

0 comments on commit c4aea40

Please sign in to comment.