gristlabs_grist-core/stubs/app/server/lib/create.ts
Spoffy e56b416c7a
Moves core create object and core getLoginSystem to server/lib (#994)
This enables code in ext/ to be able to access it (e.g for proxying / interception).

Additionally adds getCreate() to enable future refactoring of `const create` away from being a global singleton constant.
2024-05-23 23:07:46 +01:00

14 lines
423 B
TypeScript

import {ICreate} from "app/server/lib/ICreate";
import {makeCoreCreator} from "app/server/lib/coreCreator";
export const create: ICreate = makeCoreCreator();
/**
* Fetch the ICreate object for grist-core.
* Placeholder to enable eventual refactoring away from a global singleton constant.
* Needs to exist in all repositories before core can be switched!
*/
export function getCreator(): ICreate {
return create;
}