bob-core 0.8.4 → 0.8.5
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 +4 -4
- package/package.json +1 -1
package/dist/Command.d.ts
CHANGED
|
@@ -16,12 +16,12 @@ 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>(key: string, defaultValue?:
|
|
19
|
+
protected option<T = string>(key: string, defaultValue?: any | null): T | null;
|
|
20
20
|
protected optionBoolean(key: string, defaultValue?: boolean): boolean;
|
|
21
|
-
protected optionArray(key: string, defaultValue?:
|
|
21
|
+
protected optionArray<T = string>(key: string, defaultValue?: Array<any>): Array<T>;
|
|
22
22
|
protected optionNumber(key: string, defaultValue?: number | null): number | null;
|
|
23
|
-
protected argument(key: string, defaultValue?: any | null):
|
|
24
|
-
protected argumentArray(key: string, defaultValue?:
|
|
23
|
+
protected argument<T = string>(key: string, defaultValue?: any | null): T | null;
|
|
24
|
+
protected argumentArray<T = string>(key: string, defaultValue?: Array<any>): Array<T>;
|
|
25
25
|
protected argumentBoolean(key: string, defaultValue?: boolean): boolean;
|
|
26
26
|
protected argumentNumber(key: string, defaultValue?: number | null): number | null;
|
|
27
27
|
}
|