Skip to content

AIDK API Reference / aidk-shared / markAsContentComponent

Function: markAsContentComponent() ​

ts
function markAsContentComponent<T>(fn: T): T;

Defined in: packages/shared/src/identity.ts:116

Mark a function as a content component.

Type Parameters ​

Type Parameter
T extends Function

Parameters ​

ParameterTypeDescription
fnTThe function to mark

Returns ​

T

The same function marked as a content component

Released under the MIT License.