UNPKG
clefairy
Version:
latest (2.1.0)
2.1.0
2.0.0
1.2.0
1.1.0
1.0.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.0
0.0.0
Typed CLI argv parser and main function wrapper
github.com/suchipi/clefairy
suchipi/clefairy
clefairy
/
dist
/
check-options.d.ts
7 lines
(6 loc)
•
275 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
TypeSymbol
,
TypeSymbolToType
}
from
"./symbols"
;
export
declare
function
checkOptions<
ArgsObject
extends
{ [
key
:
string
]:
TypeSymbol
; }>(
schema
:
ArgsObject
,
options
:
any
): asserts options is { [key
in
keyof
ArgsObject
]:
TypeSymbolToType
<
ArgsObject
[key]>; };