bob-core 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Command.d.ts +6 -2
- package/package.json +1 -1
package/dist/Command.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export declare abstract class Command<C = undefined> extends CommandHelper {
|
|
|
16
16
|
get command(): string;
|
|
17
17
|
protected abstract handle(): Promise<void | number>;
|
|
18
18
|
run(ctx: C, ...args: any[]): Promise<number>;
|
|
19
|
-
protected option<T = string | number | boolean | string[] | number[]>(key: string
|
|
20
|
-
protected
|
|
19
|
+
protected option<T = string | number | boolean | string[] | number[]>(key: string): T | null;
|
|
20
|
+
protected option<T = string | number | boolean | string[] | number[]>(key: string, defaultValue: T): T;
|
|
21
|
+
protected option<T = string | number | boolean | string[] | number[]>(key: string, defaultValue: null): T | null;
|
|
22
|
+
protected argument<T = string | number | boolean | string[] | number[]>(key: string): T | null;
|
|
23
|
+
protected argument<T = string | number | boolean | string[] | number[]>(key: string, defaultValue: T): T;
|
|
24
|
+
protected argument<T = string | number | boolean | string[] | number[]>(key: string, defaultValue: null): T | null;
|
|
21
25
|
}
|