RenderProjection
interface exported by @mwillbanks/tuil-streaming.
interface
Public interface exported by @mwillbanks/tuil-streaming.
export interface RenderProjection<T = unknown> {
readonly id: string;
project(
document: PartialDocument,
context: { readonly signal: AbortSignal },
): T | Promise<T>;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
id | string | Yes | The id member uses the string contract. | — |
project | (document: PartialDocument, context: { readonly signal: AbortSignal; }) => T | Promise<T> | Yes | The project member uses the (document: PartialDocument, context: { readonly signal: AbortSignal; }) => T | Promise<T> contract. | PartialDocument |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference