process-env-parser icon indicating copy to clipboard operation
process-env-parser copied to clipboard

Mask arguments cannot be currently inferred from default or parser options

Open teijo opened this issue 5 years ago • 0 comments

Logically the arguments for the masking function are as documented in README:

mask?: boolean | ((value: Parser | string | Default) => string);

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).

Fix if / when possible.

teijo avatar Jan 14 '20 23:01 teijo