UNPKG

@beesley/ts-env

Version:

An environment variable reader for TypeScript

7 lines (5 loc) 168 B
import string from './string.js'; import orThrow from './or-throw.js'; export default function stringOrThrow(key: string) { return orThrow(string, 'string')(key); }