File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
createComponentNameAnnotateHooks ,
11
11
Logger ,
12
12
} from "@sentry/bundler-plugin-core" ;
13
- import { UnpluginOptions } from "unplugin" ;
13
+ import { UnpluginOptions , VitePlugin } from "unplugin" ;
14
14
15
15
function viteReleaseInjectionPlugin ( injectionCode : string ) : UnpluginOptions {
16
16
return {
@@ -73,8 +73,7 @@ const sentryUnplugin = sentryUnpluginFactory({
73
73
bundleSizeOptimizationsPlugin : viteBundleSizeOptimizationsPlugin ,
74
74
} ) ;
75
75
76
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
77
- export const sentryVitePlugin : ( options ?: Options ) => any = sentryUnplugin . vite ;
76
+ export const sentryVitePlugin : ( options ?: Options ) => VitePlugin [ ] = sentryUnplugin . vite ;
78
77
79
78
export type { Options as SentryVitePluginOptions } from "@sentry/bundler-plugin-core" ;
80
79
export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
Original file line number Diff line number Diff line change 1
- import { VitePlugin } from "unplugin" ;
2
1
import { sentryVitePlugin } from "../src" ;
3
2
4
3
test ( "Vite plugin should exist" , ( ) => {
@@ -16,7 +15,7 @@ describe("sentryVitePlugin", () => {
16
15
authToken : "test-token" ,
17
16
org : "test-org" ,
18
17
project : "test-project" ,
19
- } ) as VitePlugin [ ] ;
18
+ } ) ;
20
19
21
20
expect ( Array . isArray ( plugins ) ) . toBe ( true ) ;
22
21
You can’t perform that action at this time.
0 commit comments