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 ​
| Parameter | Type | Description |
|---|---|---|
fn | T | The function to mark |
Returns ​
T
The same function marked as a semantic component