@witchcraft/spellcraft
    Preparing search index...

    Function createKey

    • Creates a key.

      Type Parameters

      • TId extends string = string

        @internal See ./README.md Collection Entries

      • TKey extends Mutable<Pick<Key<TId>, "id"> & Partial<Omit<Key<TId>, "id">>> = Mutable<Pick<Key<TId>, "id"> & Partial<Omit<Key<TId>, "id">>>

      Parameters

      Returns Result<Key<TId>, KnownError<"INVALID_VARIANT">>