MCPcopy
hub / github.com/riot/riot / RiotComponentWrapper

Interface RiotComponentWrapper

riot.d.ts:129–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128// This object represents the Output of the Riot compiler
129export interface RiotComponentWrapper<Component> {
130 readonly css?: string | null
131 readonly exports?: RiotComponentFactoryFunction<Component> | Component | null
132 readonly name?: string | null
133
134 template?(
135 template: (
136 template: string,
137 bindings?: BindingData<Component>[],
138 ) => TemplateChunk<Component>,
139 expressionTypes: Record<keyof typeof ExpressionType, number>,
140 bindingTypes: Record<keyof typeof BindingType, number>,
141 getComponent: TagBindingData['getComponent'],
142 ): TemplateChunk<Component> | null
143}
144
145// Interface for components factory functions
146export interface RiotComponentFactoryFunction<Component> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…