Constructors

Methods

  • Searches for the first metadata type in the registry that returns true for the given predicate function.

    Can return undefined if no type matches the predicate.

    Parameters

    • predicate: ((type: MetadataType) => boolean)

      Predicate to test types with

    Returns undefined | MetadataType

    The first metadata type object that fulfills the predicate

  • Return the parent metadata type from the registry for the given child type

    Parameters

    • childName: string

      Child metadata type name

    Returns undefined | MetadataType

    Parent metadata type object or undefined if no parent exists

  • Find similar metadata type matches by its file suffix

    Parameters

    • suffix: string

      File suffix of the metadata type

    Returns undefined | {
        metadataTypeGuess: MetadataType;
        suffixGuess: string;
    }[]

    An array of similar suffix and metadata type matches