import type refactor

This commit is contained in:
Jan Prochazka
2022-11-03 16:40:54 +01:00
parent 6c7e263f0e
commit f713a4b183
53 changed files with 54 additions and 67 deletions

View File

@@ -1,4 +1,4 @@
import { ApplicationDefinition, StoredConnection } from 'dbgate-types';
import type { ApplicationDefinition, StoredConnection } from 'dbgate-types';
import { apiCall } from '../utility/api';
export async function saveDbToApp(conid: string, database: string, app: string) {

View File

@@ -1,4 +1,4 @@
import { QuickExportDefinition } from 'dbgate-types';
import type { QuickExportDefinition } from 'dbgate-types';
import { getExtensions } from '../stores';
export function createQuickExportMenuItems(handler: (fmt: QuickExportDefinition) => Function, advancedExportMenuItem) {

View File

@@ -1,5 +1,5 @@
import { DictionaryDescription } from 'dbgate-datalib';
import { ApplicationDefinition, TableInfo } from 'dbgate-types';
import type { ApplicationDefinition, TableInfo } from 'dbgate-types';
import _ from 'lodash';
import { apiCall } from './api';
import { filterAppsForDatabase, saveDbToApp } from './appTools';

View File

@@ -1,8 +1,6 @@
import _ from 'lodash';
import { loadCachedValue, subscribeCacheChange, unsubscribeCacheChange } from './cache';
import stableStringify from 'json-stable-stringify';
import getAsArray from './getAsArray';
import { DatabaseInfo } from 'dbgate-types';
import { derived } from 'svelte/store';
import { extendDatabaseInfo } from 'dbgate-tools';
import { setLocalStorage } from '../utility/storageCache';