Interface EmpConstructor<T, TRepr>

Source
Expand description

Args for constructing a Emp type

interface EmpConstructor<T, TRepr> {
    free: (ptr: TRepr) => void | Promise<void>;
    marker?: T;
}

Properties§

§free: { ... }

Function to free the underlying object. Called when this Emp is garbage-collected

§marker?: T

The marker for the Emp type, used to distinguish between multiple Emp types in TypeScript