mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Parser#check(...) is a chainable function, just like all the others
This commit is contained in:
@@ -35,7 +35,7 @@ parser = parser.options({});
|
||||
|
||||
parser = parser.usage(str);
|
||||
|
||||
parser.check(checkFn);
|
||||
parser = parser.check(checkFn);
|
||||
|
||||
parser = parser.boolean(str);
|
||||
parser = parser.boolean([str]);
|
||||
|
||||
Reference in New Issue
Block a user