Skip to content

Commit 06fb7c8

Browse files
fix(devtools): hide symbol DEVTOOL_FEATURE_NAMES [backport v20, v21] (#280)
1 parent 5a8feda commit 06fb7c8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

libs/ngrx-toolkit/src/lib/devtools/with-dev-tools-stub.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { DEVTOOL_FEATURE_NAMES, withDevtools } from './with-devtools';
66
*/
77
export const withDevToolsStub: typeof withDevtools = () =>
88
signalStoreFeature(
9-
withProps(() => ({
10-
[DEVTOOL_FEATURE_NAMES]: [GLITCH_TRACKING_FEATURE],
11-
})),
9+
withProps(
10+
() =>
11+
({
12+
[DEVTOOL_FEATURE_NAMES]: [GLITCH_TRACKING_FEATURE],
13+
}) as Record<string, never>,
14+
),
1215
);

libs/ngrx-toolkit/src/lib/devtools/with-devtools.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,5 @@ export function withDevtools(name: string, ...features: DevtoolsFeature[]) {
8080
},
8181
};
8282
}),
83-
) as SignalStoreFeature<
84-
EmptyFeatureResult,
85-
EmptyFeatureResult & { props: { [DEVTOOL_FEATURE_NAMES]: string[] } }
86-
>;
83+
) as SignalStoreFeature<EmptyFeatureResult, EmptyFeatureResult>;
8784
}

0 commit comments

Comments
 (0)