AIDK API Reference / aidk-shared / markAsHostPrimitive
Function: markAsHostPrimitive() ​
ts
function markAsHostPrimitive<T>(fn: T): T;Defined in: packages/shared/src/identity.ts:75
Mark a function as a host primitive. Host primitives are structural components that should be handled by the renderer directly, not executed as functions.
Type Parameters ​
| Type Parameter |
|---|
T extends Function |
Parameters ​
| Parameter | Type | Description |
|---|---|---|
fn | T | The function to mark as a host primitive |
Returns ​
T
The same function marked as a host primitive