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