Skip to content

Documentation / @agentick/shared / markAsHostPrimitive

Function: markAsHostPrimitive() ​

markAsHostPrimitive<T>(fn): T

Defined in: 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 ​

T ​

T extends Function

Parameters ​

fn ​

T

The function to mark as a host primitive

Returns ​

T

The same function marked as a host primitive

Released under the ISC License.