Skip to content

AIDK API Reference / aidk-shared / markAsSemanticComponent

Function: markAsSemanticComponent() ​

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

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

Mark a function as a semantic component.

Type Parameters ​

Type Parameter
T extends Function

Parameters ​

ParameterTypeDescription
fnTThe function to mark

Returns ​

T

The same function marked as a semantic component

Released under the MIT License.