Currently the value will get inferred (not explicitly passing it as type argument) as any. It might be limitation of TypeScript (3.7.4 at the time of writing) to not be able to infer type from a sibling property (default: Default or parser: () => Parser).
Logically the arguments for the masking function are as documented in README:
Currently the
value
will get inferred (not explicitly passing it as type argument) asany
. It might be limitation of TypeScript (3.7.4 at the time of writing) to not be able to infer type from a sibling property (default: Default
orparser: () => Parser
).Fix if / when possible.