idlize
11 строк · 292.0 Байт
1export class IncrementalNode {}2
3export function NodeAttach<Node extends IncrementalNode>(4create: () => Node,5/** @memo */6update: (node: Node) => void7) { throw new Error("not implemented") }8
9export function remember<Value>(compute: () => Value): Value {10return compute()11}