UNPKG

@beesley/ts-env

Version:

An environment variable reader for TypeScript

4 lines 218 B
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