From 6b9a73c5222e6045fbaea7d47f56e72ebac11bfc Mon Sep 17 00:00:00 2001 From: Maximo Mussini Date: Wed, 19 Oct 2022 10:57:38 -0300 Subject: [PATCH] feat: expose types --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 6a15733..96d9fea 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,13 +15,13 @@ import type { Plugin } from 'vite' * process.env values are strings, and the inconsistency would make it easy to * introduce sutble bugs. */ -type EnvVarDefault = string | null | undefined +export type EnvVarDefault = string | null | undefined -type EnvVarDefaults = Record +export type EnvVarDefaults = Record -type EnvVars = 'all' | string[] | EnvVarDefaults +export type EnvVars = 'all' | string[] | EnvVarDefaults -interface EnvOptions { +export interface EnvOptions { /** * Only variables that match this prefix will be made available. * @default ''