Skip to content

Commit e6ebbc8

Browse files
committed
Revert the breaking changes to the pinia types, add ignores instead
1 parent f9d1e3c commit e6ebbc8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/vue/src/pinia.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ type PiniaPlugin = (context: {
1515
type SentryPiniaPluginOptions = {
1616
attachPiniaState: boolean;
1717
addBreadcrumbs: boolean;
18-
actionTransformer: (action: string) => unknown;
19-
stateTransformer: (state: Record<string, unknown>) => Record<string, unknown>;
18+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
19+
actionTransformer: (action: string) => any;
20+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
21+
stateTransformer: (state: Record<string, unknown>) => any;
2022
};
2123

2224
const DEFAULT_PINIA_PLUGIN_OPTIONS: SentryPiniaPluginOptions = {
@@ -29,7 +31,8 @@ const DEFAULT_PINIA_PLUGIN_OPTIONS: SentryPiniaPluginOptions = {
2931
const getAllStoreStates = (
3032
pinia: { state: Ref<Record<string, StateTree>> },
3133
stateTransformer?: SentryPiniaPluginOptions['stateTransformer'],
32-
): Record<string, unknown> => {
34+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
35+
): any => {
3336
const states: Record<string, unknown> = {};
3437

3538
try {

0 commit comments

Comments
 (0)