Skip to content

Commit

Permalink
refactor: types
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Feb 6, 2022
1 parent e07269e commit ccd1ef5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/vite-plugin-checker/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ export interface OverlayErrorAction extends Action {
payload: HMRPayload | null
}

interface ConfigActionPayload {
hmr?: { overlay?: boolean } | boolean
env: ConfigEnv
}

export interface ConfigAction extends Action {
type: ACTION_TYPES.config
payload: {
hmr?: { overlay?: boolean } | boolean
env: ConfigEnv
}
payload: ConfigActionPayload
}

export interface ConfigureServerAction extends Action {
Expand Down Expand Up @@ -172,7 +174,7 @@ export interface ServeChecker<T extends BuildInCheckerNames = any> {
}

export interface CheckerDiagnostic {
config: (options: { hmr?: { overlay?: boolean } | boolean; env: ConfigEnv }) => unknown
config: (options: ConfigActionPayload) => unknown
configureServer: (options: { root: string }) => unknown
}

Expand Down

0 comments on commit ccd1ef5

Please sign in to comment.