-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
ActorContextPreprocess.ts
36 lines (32 loc) 路 1.11 KB
/
ActorContextPreprocess.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core';
import { Actor } from '@comunica/core';
import type { IActionContext } from '@comunica/types';
/**
* A comunica actor for context-preprocess events.
*
* Actor types:
* * Input: IAction: A context that will be processed.
* * Test: <none>
* * Output: IActorContextPreprocessOutput: The resulting context.
*
* @see IActionContextPreprocess
* @see IActorContextPreprocessOutput
*/
export abstract class ActorContextPreprocess
extends Actor<IAction, IActorTest, IActorContextPreprocessOutput> {
/**
* @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
*/
public constructor(args: IActorContextPreprocessArgs) {
super(args);
}
}
export interface IActorContextPreprocessOutput extends IActorOutput {
/**
* A context object.
* Can be null.
*/
context: IActionContext;
}
export type IActorContextPreprocessArgs = IActorArgs<IAction, IActorTest, IActorContextPreprocessOutput>;
export type MediatorContextPreprocess = Mediate<IAction, IActorContextPreprocessOutput>;