UNPKG
@beesley/ts-env
Version:
latest (1.0.1)
1.0.1
1.0.0
An environment variable reader for TypeScript
github.com/bbeesley/ts-env
bbeesley/ts-env
@beesley/ts-env
/
dist
/
types
/
or-throw.d.ts
4 lines
•
218 B
TypeScript
View Raw
1
2
3
4
type
ReadFunction
<T> =
(
key
:
string
) =>
T |
undefined
;
export
default
function
orThrow<T>(
readFunction
:
ReadFunction
<T>,
type
:
string
):
(
key
:
string
) =>
NonNullable
<T>;
export
{};
//# sourceMappingURL=or-throw.d.ts.map