chore: typo fix

This commit is contained in:
DarkSky
2023-01-03 22:45:48 +08:00
parent ebdb3172e5
commit be21e856cf
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -1,9 +1,8 @@
import { Signal } from '@blocksuite/store'; import { Signal } from '@blocksuite/store';
export const getDataCenter = () => { export const getDataCenter = async () => {
return import('../src/index.js').then(async dataCenter => const dataCenter = await import('../src/index.js');
dataCenter.getDataCenter(false) return await dataCenter.getDataCenter(false);
);
}; };
export const waitOnce = <T>(signal: Signal<T>) => export const waitOnce = <T>(signal: Signal<T>) =>