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
/
src
/
string-or-throw.ts
7 lines
(5 loc)
•
168 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
string
from
'./string.js'
;
import
orThrow
from
'./or-throw.js'
;
export
default
function
stringOrThrow
(
key
:
string
) {
return
orThrow
(
string
,
'string'
)(key); }