weasel API - v0.8.0
    Preparing search index...

    Interface ScratchKey<T>

    Phantom-typed key for a scratch slot. The __scratchKeyPayload phantom field carries the value type without occupying any runtime memory.

    interface ScratchKey<T> {
        __scratchKeyPayload?: (_: T) => T;
        name: string;
    }

    Type Parameters

    • T
    Index

    Properties

    __scratchKeyPayload?: (_: T) => T

    Phantom — never read at runtime. Only present so TypeScript can recover T at use sites.

    name: string