Skip to content

AIDK API Reference / aidk-shared / markWithSymbol

Function: markWithSymbol() ​

ts
function markWithSymbol<T>(symbol: symbol, fn: T): T;

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

Mark a function with a symbol for identity checking. Returns the same function with the symbol attached.

Type Parameters ​

Type Parameter
T extends Function

Parameters ​

ParameterTypeDescription
symbolsymbolThe symbol to attach
fnTThe function to mark

Returns ​

T

The same function with the symbol attached

Released under the MIT License.