hed-typescript API
    Preparing search index...
    Index
    • Evaluate the definition based on a parsed HED tag.

      Parameters

      • tag: default

        The tag to evaluate against the definitions.

      • hedSchemas: HedSchemas

        The schemas to be used to assist in the evaluation.

      • placeholderAllowed: boolean

        If true then placeholder is allowed in the def tag.

      Returns ReturnTupleWithIssues<string>

      A tuple with definition contents for this tag and any issues.

      Note: If the tag is not a Def or Def-expand, this returns null for the string and [] for the issues.

    • Check the Def tags in a HED string for missing or incorrectly used Def-expand tags.

      Parameters

      • hedString: default

        A parsed HED string to be checked.

      • hedSchemas: HedSchemas

        Schemas to validate against.

      • placeholderAllowed: boolean

        If true then placeholder is allowed in the def tag.

      Returns Issue[]

      If there is no matching definition or definition applied incorrectly.

    • Check the Def tags in a HED string for missing or incorrectly used Def tags.

      Parameters

      • hedString: default

        A parsed HED string to be checked.

      • hedSchemas: HedSchemas

        Schemas to validate against.

      • placeholderAllowed: boolean

        If true then placeholder is allowed in the def tag.

      Returns Issue[]

      If there is no matching definition or definition applied incorrectly.