Files
cloudbeaver/webapp/packages/plugin-sql-editor-navigation-tab/src/sessionActionOpenSQLEditor.ts
T
Alexey 6ad148850d refactor: migrate to pure esm CB-5684 (#2929)
* refactor: migrate to pure esm

* chore: revert `useDefineForClassFields` tsconf

* chore: remove patch.js
2024-09-21 07:06:37 +03:00

22 lines
724 B
TypeScript

/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
import type { ISessionAction } from '@cloudbeaver/core-root';
import { SESSION_ACTION_OPEN_SQL_EDITOR } from './SESSION_ACTION_OPEN_SQL_EDITOR.js';
export interface ISessionActionOpenSQLEditor {
action: typeof SESSION_ACTION_OPEN_SQL_EDITOR;
'editor-name': string;
'project-id': string;
'connection-id': string;
}
export function isSessionActionOpenSQLEditor(action: ISessionAction | null): action is ISessionActionOpenSQLEditor {
return action?.action === SESSION_ACTION_OPEN_SQL_EDITOR;
}