mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add test for alias with single string value
This commit is contained in:
@@ -19,6 +19,9 @@ opts.boolean = strArr;
|
||||
opts.alias = {
|
||||
foo: strArr
|
||||
};
|
||||
opts.alias = {
|
||||
foo: str
|
||||
};
|
||||
opts.default = {
|
||||
foo: str
|
||||
};
|
||||
@@ -29,7 +32,7 @@ opts.unknown = (arg: string) => {
|
||||
if(/xyz/.test(arg)){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
};
|
||||
opts.stopEarly = true;
|
||||
|
||||
Reference in New Issue
Block a user