Skip to content

Commit

Permalink
refactor(types): reorder export in src/node/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Sep 2, 2022
1 parent 763d8f3 commit ee2d017
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions packages/vite/src/node/index.ts
Expand Up @@ -60,12 +60,6 @@ export type {
LogType,
LoggerOptions
} from './logger'
export type {
AliasOptions,
ResolverFunction,
ResolverObject,
Alias
} from 'dep-types/alias'
export type {
IndexHtmlTransform,
IndexHtmlTransformHook,
Expand Down Expand Up @@ -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'
Expand All @@ -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 {
Expand Down

0 comments on commit ee2d017

Please sign in to comment.