aran
Version:
JavaScript instrumenter
19 lines (14 loc) • 333 B
TypeScript
import type { Cache } from "./cache.d.ts";
export type MethodClosure = {
type: "method";
proto: Cache;
};
export type ConstructorClosure = {
type: "constructor";
field: Cache;
derived: boolean;
};
export type PlainClosure = {
type: "plain";
};
export type Closure = MethodClosure | ConstructorClosure | PlainClosure;