TOC Toolkit API - v0.1.0
    Preparing search index...

    Interface ArtifactKey<T>

    The typed name of one kind of cached artifact, such as the trimmed form of an automaton. A key is made once, as a constant of the module that computes the artifact. Its cache stores and returns artifacts under that key, so a key of one artifact type does not stand in for a key of a wider or a narrower type.

    interface ArtifactKey<in out T> {
        name: string;
        "[tables]": WeakMap<ArtifactCache, WeakMap<object, Cached<T>>>;
    }

    Type Parameters

    • in out T
    Index
    name: string

    A name for debugging. Two keys with the same name are different keys.

    "[tables]": WeakMap<ArtifactCache, WeakMap<object, Cached<T>>>

    The artifacts of this key, by cache and then by owner. The key holds its own artifacts, so each table has the type of the key and a lookup needs no type assertion.