Prometheus Entity Management API
    Preparing search index...

    Interface EntityDescriptor<TNode, TEntity>

    interface EntityDescriptor<TNode, TEntity extends object> {
        extractId?: (node: TNode) => string;
        normalize: (node: TNode) => TEntity;
        path: string;
        relations?: EntityDescriptor<unknown, Record<string, unknown>>[];
        type: string;
    }

    Type Parameters

    • TNode
    • TEntity extends object
    Index
    extractId?: (node: TNode) => string
    normalize: (node: TNode) => TEntity
    path: string
    relations?: EntityDescriptor<unknown, Record<string, unknown>>[]
    type: string