immutable-plugin-system - v0.3.0
    Preparing search index...

    Type Alias ImmutableEntityCollections<K, T>

    ImmutableEntityCollections: {
        readonly [k in K]-?: ImmutableEntityCollection<
            Extract<keyof T[k], string | symbol>,
            T[k][keyof T[k]],
        >
    }

    Type that creates entity collections for each entity type in the plugin. Maps entity keys to their corresponding ImmutableEntityCollection types. This implementation correctly handles the constraint that all entity types are records.

    Type Parameters

    • K extends PropertyKey

      The entity key type, must extend PropertyKey

    • T extends { [k in K]: ImmutableEntitiesRecord[PropertyKey] }

      The entity types record, where each value must be a record