Skip to content

Commit 8247cff

Browse files
Cameron Divertwhiteman
authored andcommitted
Add all available types for command arguments
The arguments for a command can be either a string, array or map, so these types have been added to the typings. Signed-off-by: Cameron Diver <[email protected]>
1 parent 460e9a8 commit 8247cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export interface CommandEntry {
44
name: string;
5-
args: string[];
5+
args: string | string[] | { [key: string]: string };
66
lineno: number;
77
raw: string;
88
error?: string;

0 commit comments

Comments
 (0)