UNPKG

@gecut/utilities

Version:

The ultimate utility toolkit from Gecut Company, crafted with TypeScript for optimal speed and efficiency. Designed to boost productivity with a suite of fast and optimized tools.

9 lines (8 loc) 285 B
type EnvReturn<T extends 'string' | 'number'> = T extends 'number' ? number : string; export declare function env<T extends 'string' | 'number', K extends EnvReturn<T>>( name: keyof typeof process.env, defaultValue: K, type: T, ): K; export {}; //# sourceMappingURL=env.d.ts.map