mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
12 lines
283 B
TypeScript
12 lines
283 B
TypeScript
import type { ExposedMeta } from '@toeverything/infra/preload/electron';
|
|
|
|
/**
|
|
* A naive DI implementation to get rid of circular dependency.
|
|
*/
|
|
|
|
export let exposed: ExposedMeta | undefined;
|
|
|
|
export const provideExposed = (exposedMeta: ExposedMeta) => {
|
|
exposed = exposedMeta;
|
|
};
|