Skip to content

Commit 1beb3e8

Browse files
authored
fix: types fixed by upstream (#563)
1 parent 902d273 commit 1beb3e8

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

src/esbuild.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { Options } from './types'
21
import unplugin from '.'
32

4-
// TODO: some upstream lib failed to generate invalid dts, remove the any in the future
5-
export default unplugin.esbuild as (options?: Options) => any
3+
export default unplugin.esbuild

src/rollup.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { Options } from './types'
21
import unplugin from '.'
32

4-
// TODO: some upstream lib failed to generate invalid dts, remove the any in the future
5-
export default unplugin.rollup as (options?: Options) => any
3+
export default unplugin.rollup

src/rspack.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { Options } from './types'
21
import unplugin from '.'
32

4-
// TODO: some upstream lib failed to generate invalid dts, remove the any in the future
5-
export default unplugin.rspack as (options?: Options) => any
3+
export default unplugin.rspack

src/vite.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { Options } from './types'
21
import unplugin from '.'
32

4-
// TODO: some upstream lib failed to generate invalid dts, remove the any in the future
5-
export default unplugin.vite as (options?: Options) => any
3+
export default unplugin.vite

src/webpack.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { Options } from './types'
21
import unplugin from '.'
32

4-
// TODO: some upstream lib failed to generate invalid dts, remove the any in the future
5-
export default unplugin.webpack as (options?: Options) => any
3+
export default unplugin.webpack

0 commit comments

Comments
 (0)