Function extendVocabulary

  • Creates a new Vocabulary that extends an existing one by adding new local names.

    Type Parameters

    • TBase extends string

    • TLocal extends string

    • TNew extends string

    Parameters

    • vocabulary: Vocabulary<TBase, TLocal>

      The Vocabulary to extend.

    • Rest ...newNames: TNew[]

      The new local names that need to be added.

    Returns ReturnType<typeof createVocabulary>