mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 20:46:38 +08:00
chore: sort imports
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user