Skip to content

Commit fa2a374

Browse files
committedJul 6, 2020
Fix typo
Closes #153
1 parent 629af48 commit fa2a374

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare namespace meow {
3737
- `alias`: Usually used to define a short flag alias.
3838
- `default`: Default value when the flag is not specified.
3939
- `isRequired`: Determine if the flag is required.
40-
If it's only known at runtime whether the flag is requried or not you can pass a Function instead of a boolean, which based on the given flags and other non-flag arguments should decide if the flag is required.
40+
If it's only known at runtime whether the flag is required or not you can pass a Function instead of a boolean, which based on the given flags and other non-flag arguments should decide if the flag is required.
4141
- `isMultiple`: Indicates a flag can be set multiple times. Values are turned into an array. (Default: false)
4242
4343
@example

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The key is the flag name and the value is an object with any of:
138138
- `alias`: Usually used to define a short flag alias.
139139
- `default`: Default value when the flag is not specified.
140140
- `isRequired`: Determine if the flag is required. (Default: false)
141-
- If it's only known at runtime whether the flag is requried or not, you can pass a `Function` instead of a `boolean`, which based on the given flags and other non-flag arguments, should decide if the flag is required. Two arguments are passed to the function:
141+
- If it's only known at runtime whether the flag is required or not, you can pass a `Function` instead of a `boolean`, which based on the given flags and other non-flag arguments, should decide if the flag is required. Two arguments are passed to the function:
142142
- The first argument is the **flags** object, which contains the flags converted to camel-case excluding aliases.
143143
- The second argument is the **input** string array, which contains the non-flag arguments.
144144
- The function should return a `boolean`, true if the flag is required, otherwise false.

0 commit comments

Comments
 (0)
Please sign in to comment.