chore: sort imports

This commit is contained in:
DarkSky
2022-08-13 03:16:26 +08:00
parent 5462b1707f
commit 754b2581cd
198 changed files with 839 additions and 917 deletions
@@ -1,11 +1,11 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import type { TDDocument, TDFile } from '@toeverything/components/board-types';
import type { FileSystemHandle } from './browser-fs-access';
import { get as getFromIdb, set as setToIdb } from 'idb-keyval';
import {
IMAGE_EXTENSIONS,
VIDEO_EXTENSIONS,
} from '@toeverything/components/board-types';
import { get as getFromIdb, set as setToIdb } from 'idb-keyval';
import type { FileSystemHandle } from './browser-fs-access';
const options = { mode: 'readwrite' as const };
@@ -1,3 +1,3 @@
export * from './migrate';
export * from './filesystem';
export * from './browser-fs-access';
export * from './filesystem';
export * from './migrate';
@@ -1,7 +1,7 @@
import type { TDDocument } from '~types';
import { TldrawApp } from '~state';
import oldDoc from '~test/documents/old-doc';
import oldDoc2 from '~test/documents/old-doc-2';
import type { TDDocument } from '~types';
describe('When migrating bindings', () => {
it('migrates a document without a version', () => {
@@ -1,10 +1,8 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import {
Decoration,
FontStyle,
TDDocument,
TDShapeType,
// TextShape
} from '@toeverything/components/board-types';
export function migrate(document: TDDocument, newVersion: number): TDDocument {