UNPKG
atikin-env
Version:
latest (1.0.1)
1.0.1
Ultra-fast, zero-dependency .env loader with type safety for Node/TS. Created by: Atikin Verse.
atikin-env
/
dist
/
src
/
index.d.ts
9 lines
(8 loc)
•
282 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
type
EnvSchema
=
Record
<
string
,
'string'
|
'number'
|
'boolean'
>;
interface
LoadOptions
{
path
?:
string
;
allowPartial
?:
boolean
;
defaults
?:
Record
<
string
,
any
>; }
export
declare
function
loadEnv
(
schema
:
EnvSchema
,
options
?:
LoadOptions
):
Record
<
string
,
any
>;
export
{};