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
32 lines
808 B
Plaintext
32 lines
808 B
Plaintext
/**
|
|
*
|
|
* common
|
|
*
|
|
*/
|
|
/**
|
|
* Parameters for GraphQL's request for execution.
|
|
*
|
|
* Reference: https://graphql.github.io/graphql-over-http/draft/#sec-Request-Parameters
|
|
*
|
|
* @category Common
|
|
*/
|
|
export interface RequestParams {
|
|
operationName?: string | null | undefined;
|
|
query: string;
|
|
variables?: Record<string, unknown> | null | undefined;
|
|
extensions?: Record<string, unknown> | null | undefined;
|
|
}
|
|
/**
|
|
* A representation of any set of values over any amount of time.
|
|
*
|
|
* @category Common
|
|
*/
|
|
export interface Sink<T = unknown> {
|
|
/** Next value arriving. */
|
|
next(value: T): void;
|
|
/** An error that has occurred. This function "closes" the sink. */
|
|
error(error: unknown): void;
|
|
/** The sink has completed. This function "closes" the sink. */
|
|
complete(): void;
|
|
}
|