Skip to content

Commit de76bcc

Browse files
chore: export DevtoolsFeature type (#251)
Closes #178
1 parent 6720a78 commit de76bcc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

libs/ngrx-toolkit/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export {
88
export { renameDevtoolsName } from './lib/devtools/rename-devtools-name';
99
export { patchState, updateState } from './lib/devtools/update-state';
1010
export { withDevToolsStub } from './lib/devtools/with-dev-tools-stub';
11-
export { withDevtools } from './lib/devtools/with-devtools';
11+
export { DevtoolsFeature, withDevtools } from './lib/devtools/with-devtools';
1212

1313
export {
1414
createEffects,

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ import {
88
} from '@ngrx/signals';
99
import { DefaultTracker } from './internal/default-tracker';
1010
import {
11-
DevtoolsFeature,
11+
DevtoolsFeature as DevtoolsFeatureInternal,
1212
DevtoolsInnerOptions,
1313
} from './internal/devtools-feature';
1414
import { DevtoolsSyncer } from './internal/devtools-syncer.service';
1515
import { ReduxDevtoolsExtension } from './internal/models';
1616

17+
// Users requested that we export this type: https://github.com/angular-architects/ngrx-toolkit/issues/178
18+
export type DevtoolsFeature = DevtoolsFeatureInternal;
19+
1720
declare global {
1821
interface Window {
1922
__REDUX_DEVTOOLS_EXTENSION__: ReduxDevtoolsExtension | undefined;

0 commit comments

Comments
 (0)