File tree Expand file tree Collapse file tree 3 files changed +10
-14
lines changed
packages/compass-generative-ai/src/store Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,7 @@ import { throwIfAborted } from '@mongodb-js/compass-utils';
44import type { AtlasAiService } from '../atlas-ai-service' ;
55import type { PreferencesAccess } from 'compass-preferences-model' ;
66import type { RootState } from './atlas-ai-store' ;
7-
8- function isAction < A extends AnyAction > (
9- action : AnyAction ,
10- type : A [ 'type' ]
11- ) : action is A {
12- return action . type === type ;
13- }
7+ import { isAction } from './util' ;
148
159type AttemptState = {
1610 id : number ;
Original file line number Diff line number Diff line change @@ -3,13 +3,7 @@ import type { ThunkAction } from 'redux-thunk';
33import type { AtlasAuthService } from '@mongodb-js/atlas-service/provider' ;
44import { throwIfAborted } from '@mongodb-js/compass-utils' ;
55import type { RootState } from './atlas-ai-store' ;
6-
7- function isAction < A extends AnyAction > (
8- action : AnyAction ,
9- type : A [ 'type' ]
10- ) : action is A {
11- return action . type === type ;
12- }
6+ import { isAction } from './util' ;
137
148type AttemptState = {
159 id : number ;
Original file line number Diff line number Diff line change 1+ import type { AnyAction } from 'redux' ;
2+
3+ export function isAction < A extends AnyAction > (
4+ action : AnyAction ,
5+ type : A [ 'type' ]
6+ ) : action is A {
7+ return action . type === type ;
8+ }
You can’t perform that action at this time.
0 commit comments