Skip to content

Commit 2e92fb0

Browse files
committed
Moved ITokenReadWrite type
1 parent 7aaa7eb commit 2e92fb0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_logic.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ import { HttpLogic } from '../../../shared/http';
1313
import { IMeta } from '../../../../../common/types';
1414
import { flashAPIErrors } from '../../../shared/flash_messages';
1515
import { IEngine } from '../../types';
16-
import { IApiToken, ICredentialsDetails } from './types';
17-
18-
interface ITokenReadWrite {
19-
name: 'read' | 'write';
20-
checked: boolean;
21-
}
16+
import { IApiToken, ICredentialsDetails, ITokenReadWrite } from './types';
2217

2318
const defaultApiToken: IApiToken = {
2419
name: '',

x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ export interface IApiToken {
2020
type: string;
2121
write?: boolean;
2222
}
23+
24+
export interface ITokenReadWrite {
25+
name: 'read' | 'write';
26+
checked: boolean;
27+
}

0 commit comments

Comments
 (0)