mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
e56b416c7a
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.
14 lines
423 B
TypeScript
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;
|
|
}
|