mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
* refactor: migrate to pure esm * chore: revert `useDefineForClassFields` tsconf * chore: remove patch.js
22 lines
724 B
TypeScript
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;
|
|
}
|