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 ​
| Parameter | Type | Description |
|---|---|---|
symbol | symbol | The symbol to attach |
fn | T | The function to mark |
Returns ​
T
The same function with the symbol attached