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 {
1010 createComponentNameAnnotateHooks ,
1111 Logger ,
1212} from "@sentry/bundler-plugin-core" ;
13- import { UnpluginOptions } from "unplugin" ;
13+ import { UnpluginOptions , VitePlugin } from "unplugin" ;
1414
1515function viteReleaseInjectionPlugin ( injectionCode : string ) : UnpluginOptions {
1616 return {
@@ -73,8 +73,7 @@ const sentryUnplugin = sentryUnpluginFactory({
7373 bundleSizeOptimizationsPlugin : viteBundleSizeOptimizationsPlugin ,
7474} ) ;
7575
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 ;
7877
7978export type { Options as SentryVitePluginOptions } from "@sentry/bundler-plugin-core" ;
8079export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
Original file line number Diff line number Diff line change 1- import { VitePlugin } from "unplugin" ;
21import { sentryVitePlugin } from "../src" ;
32
43test ( "Vite plugin should exist" , ( ) => {
@@ -16,7 +15,7 @@ describe("sentryVitePlugin", () => {
1615 authToken : "test-token" ,
1716 org : "test-org" ,
1817 project : "test-project" ,
19- } ) as VitePlugin [ ] ;
18+ } ) ;
2019
2120 expect ( Array . isArray ( plugins ) ) . toBe ( true ) ;
2221
You can’t perform that action at this time.
0 commit comments