We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config/lib/index.ts
Line 27 in f2d9575
This could be made generic to support complex typing at time of read, rather than later in user code:
static getEnvObject<T = Record<string, unknown>>(key: string, defaultValue: T): T
Possibly with defaultValue: T? to allow undefined default.
defaultValue: T?
I'm not sure what the implications are for casting the JSON.parse result, but I believe it returns any so might be permissible without too much work.
any
The text was updated successfully, but these errors were encountered:
No branches or pull requests
config/lib/index.ts
Line 27 in f2d9575
This could be made generic to support complex typing at time of read, rather than later in user code:
Possibly with
defaultValue: T?
to allow undefined default.I'm not sure what the implications are for casting the JSON.parse result, but I believe it returns
any
so might be permissible without too much work.The text was updated successfully, but these errors were encountered: