Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
12 lines
653 B
Plaintext
12 lines
653 B
Plaintext
//#region src/graphql/types.d.ts
|
|
interface GraphqlClient<_Schema> {
|
|
query<Output extends object = Record<string, any>>(query: string, variables?: Record<string, unknown>, scope?: 'items' | 'system'): Promise<Output>;
|
|
}
|
|
interface GraphqlConfig {
|
|
credentials?: RequestCredentials;
|
|
}
|
|
type GqlResult<Schema extends object, Collection extends keyof Schema> = { [Key in Collection]: Schema[Collection][] };
|
|
type GqlSingletonResult<Schema extends object, Collection extends keyof Schema> = { [Key in Collection]: Schema[Collection] };
|
|
//#endregion
|
|
export { GqlResult, GqlSingletonResult, GraphqlClient, GraphqlConfig };
|
|
//# sourceMappingURL=types.d.cts.map |