openmixer — generated API reference
    Preparing search index...

    Interface ResourceHandle<S>

    The typed view of one registered entity, for internal callers — reads and writes go through the SAME pipeline as the transport, so there is no second dispatch path to drift.

    interface ResourceHandle<S extends object> {
        path: string;
        create(id: ResourceId, delta: WireDelta): Promise<ResourceCreateResult>;
        patch(
            id: ResourceId,
            delta: WireDelta,
            source?: WriteSource,
        ): Promise<ResourcePatchResult<S>>;
        read(id: ResourceId): ResourceReadResult<S>;
        remove(id: ResourceId): Promise<ResourceRemoveResult>;
        reproject(id: ResourceId): ResourcePatchResult<S>;
    }

    Type Parameters

    • S extends object
    Index
    path: string