From ee2d017e8b4828d394b1089aa5c877deb1541093 Mon Sep 17 00:00:00 2001 From: sapphi-red Date: Fri, 2 Sep 2022 19:35:40 +0900 Subject: [PATCH] refactor(types): reorder export in src/node/index.ts --- packages/vite/src/node/index.ts | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/packages/vite/src/node/index.ts b/packages/vite/src/node/index.ts index 0f4a71c3275b56..2bc81f001d6947 100644 --- a/packages/vite/src/node/index.ts +++ b/packages/vite/src/node/index.ts @@ -60,12 +60,6 @@ export type { LogType, LoggerOptions } from './logger' -export type { - AliasOptions, - ResolverFunction, - ResolverObject, - Alias -} from 'dep-types/alias' export type { IndexHtmlTransform, IndexHtmlTransformHook, @@ -108,6 +102,23 @@ export type { PrunePayload, ErrorPayload } from 'types/hmrPayload' +export type { CustomEventMap, InferCustomEventPayload } from 'types/customEvent' +// [deprecated: use vite/client/types instead] +export type { + ImportGlobFunction, + ImportGlobEagerFunction, + ImportGlobOptions, + GeneralImportGlobOptions, + KnownAsTypeMap +} from 'types/importGlob' + +// dep types +export type { + AliasOptions, + ResolverFunction, + ResolverObject, + Alias +} from 'dep-types/alias' export type { Connect } from 'dep-types/connect' export type { WebSocket, WebSocketAlias } from 'dep-types/ws' export type { HttpProxy } from 'dep-types/http-proxy' @@ -119,15 +130,7 @@ export type { export type { Terser } from 'dep-types/terser' export type { RollupCommonJSOptions } from 'dep-types/commonjs' export type { RollupDynamicImportVarsOptions } from 'dep-types/dynamicImportVars' -export type { CustomEventMap, InferCustomEventPayload } from 'types/customEvent' export type { Matcher, AnymatchPattern, AnymatchFn } from 'dep-types/anymatch' -export type { - ImportGlobFunction, - ImportGlobEagerFunction, - ImportGlobOptions, - GeneralImportGlobOptions, - KnownAsTypeMap -} from 'types/importGlob' declare module 'rollup' { export interface RenderedChunk {