Skip to content

Commit

Permalink
fix: Plugin‘s type definition is not generic
Browse files Browse the repository at this point in the history
close #44
  • Loading branch information
liuweiGL committed Sep 26, 2022
1 parent 542f15e commit 1d031d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createLogger, Plugin } from 'vite'
import { createLogger, type PluginOption } from 'vite'

import { PLUGIN_NAME } from './lib/constant'
import { getDefaultHosts } from './lib/util'
Expand All @@ -13,7 +13,7 @@ export type ViteCertificateOptions = MkcertOptions & {
hosts?: string[]
}

const plugin = (options: ViteCertificateOptions = {}): Plugin => {
const plugin = (options: ViteCertificateOptions = {}): PluginOption => {
return {
name: PLUGIN_NAME,
apply: 'serve',
Expand Down

0 comments on commit 1d031d1

Please sign in to comment.