Skip to content

Commit 1c3a09b

Browse files
committed
chore: add explicit type
1 parent 2964567 commit 1c3a09b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import boxen from 'boxen';
44
import { cyan, underline } from 'kleur/colors';
55
import logSymbols from 'log-symbols';
66

7-
import type { Plugin, UserConfig } from 'vite';
7+
import type { ConfigEnv, Plugin, UserConfig } from 'vite';
88

99
type PluginOptions = {
1010
hideInfoBox?: boolean;
@@ -23,7 +23,7 @@ type PluginOptions = {
2323
export default function DevcertPlugin(options: PluginOptions = {}): Plugin {
2424
return {
2525
name: '@idleberg/vite-plugin-devcert',
26-
config: async (userConfig: UserConfig, { command }) => {
26+
config: async (userConfig: UserConfig, { command }: ConfigEnv) => {
2727
if (command !== 'serve') {
2828
return;
2929
}

0 commit comments

Comments
 (0)