Type alias ContainsCapturingGroup<N>

ContainsCapturingGroup<N>: N extends CharacterClassElement | CharacterClass | CharacterSet | Backreference | EdgeAssertion | WordBoundaryAssertion | Flags
    ? false
    : N extends CapturingGroup
        ? true
        : boolean

Given a node type N, this will map to whether a node of type N can contain a capturing group.

Type Parameters

  • N extends Node