@incremunica/context-entries
Version:
A collection of reusable Incremunica context key definitions.
35 lines (34 loc) • 1.27 kB
TypeScript
import { ActionContextKey } from '@comunica/core';
import type { BindingsOrder, IDetermineChangesEvents, ISourceWatchEventEmitter, MatchOptions } from '@incremunica/types';
/**
* When adding entries to this file, also add a shortcut for them in the contextKeyShortcuts TSDoc comment in
* ActorIniQueryBase in @comunica/actor-init-query if it makes sense to use this entry externally.
* Also, add this shortcut to IQueryContextCommon in @comunica/types.
*/
export declare const KeysDetermineChanges: {
/**
* Events sent by the determine-changes actor.
*/
events: ActionContextKey<IDetermineChangesEvents>;
};
export declare const KeysStreamingSource: {
matchOptions: ActionContextKey<MatchOptions[]>;
};
export declare const KeysBindings: {
isAddition: ActionContextKey<boolean>;
order: ActionContextKey<BindingsOrder>;
};
export declare const KeysSourceWatch: {
pollingPeriod: ActionContextKey<number>;
deferredEvaluationTrigger: ActionContextKey<ISourceWatchEventEmitter>;
};
export declare const KeysGraphQLSource: {
/**
* The GraphQL schema linked to the source
*/
schema: ActionContextKey<string>;
/**
* The LD-context for that source
*/
context: ActionContextKey<Record<string, string>>;
};