UNPKG

@corejam/base

Version:

A scaffolding for building progressive GraphQL powered jamstack applications

16 lines (15 loc) 518 B
/** * Check if we have the data client already initialised and return it. * If we dont, callback is called which returns new client and pushes it onto stack. * * These are the data clients which are called on models.any() in plugins * so the server side resolver fetchers. * * @param identifier * @param initClient */ export declare function getDataClient(identifier: string, initClient: () => object, purge?: boolean): object; export declare enum DATACLIENTS { GRAPHQL = "graphql", FAUNA = "fauna" }