polen
Version:
A framework for delightful GraphQL developer portals
30 lines • 1.22 kB
TypeScript
import * as Vite from 'vite';
type AnyFunction = (...args: any[]) => any;
export type HookLoadFn = Extract<Vite.Plugin[`load`], AnyFunction>;
export type HookLoadFnPure = OmitThisParameter<HookLoadFn>;
export type HookResolveIdFn = Extract<Vite.Plugin[`resolveId`], AnyFunction>;
export type HookResolveIdFnPure = OmitThisParameter<HookResolveIdFn>;
export type PartialEnvironment = Parameters<Exclude<Vite.Plugin[`applyToEnvironment`], undefined>>[0];
export * from 'vite';
export declare const defaultPort = 5173;
export declare const mergeRootConfig: (target: Vite.InlineConfig, source: Vite.InlineConfig) => Vite.InlineConfig;
export declare const EnvironmentName: {
client: string;
ssr: string;
};
export declare const isEnvironmentSsr: (environment: PartialEnvironment) => boolean;
export declare const isEnvironmentClient: (environment: PartialEnvironment) => boolean;
export declare const ModeName: {
build: string;
development: string;
};
export declare const CommandName: {
serve: string;
build: string;
};
export declare const LogCodeEnum: {
MODULE_LEVEL_DIRECTIVE: string;
CIRCULAR_DEPENDENCY: string;
UNUSED_EXTERNAL_IMPORT: string;
};
//# sourceMappingURL=vite.d.ts.map