Odoo GraphQL Subscription using Node, Express JS for Sample
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
900 B

import type { ApolloCache } from "../../core/index.js";
export interface ReactiveVar<T> {
(newValue?: T): T;
onNextChange(listener: ReactiveListener<T>): () => void;
attachCache(cache: ApolloCache<any>): this;
forgetCache(cache: ApolloCache<any>): boolean;
}
export type ReactiveListener<T> = (value: T) => any;
export declare const cacheSlot: {
readonly id: string;
hasValue(): boolean;
getValue(): ApolloCache<any> | undefined;
withValue<TResult, TArgs extends any[], TThis = any>(value: ApolloCache<any>, callback: (this: TThis, ...args: TArgs) => TResult, args?: TArgs | undefined, thisArg?: TThis | undefined): TResult;
};
export declare function forgetCache(cache: ApolloCache<any>): void;
export declare function recallCache(cache: ApolloCache<any>): void;
export declare function makeVar<T>(value: T): ReactiveVar<T>;
//# sourceMappingURL=reactiveVars.d.ts.map