@servicenow/sdk - v4.4.1
    Preparing search index...
    interface ModifierableNode {
        getFirstModifierByKind<TKind extends tsc.SyntaxKind>(
            kind: TKind,
        ): KindToNodeMappings[TKind] | undefined;
        getFirstModifierByKindOrThrow<TKind extends tsc.SyntaxKind>(
            kind: TKind,
        ): KindToNodeMappings[TKind];
        getModifiers(): Node<Modifier>[];
        hasModifier(kind: tsc.SyntaxKind): boolean;
        hasModifier(text: ModifierTexts): boolean;
        toggleModifier(text: ModifierTexts, value?: boolean): this;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Gets the node's modifiers.

      Returns Node<Modifier>[]

    • Gets if it has the specified modifier.

      Parameters

      Returns boolean

    • Gets if it has the specified modifier.

      Parameters

      Returns boolean

    • Toggles a modifier.

      Parameters

      • text: ModifierTexts

        Text to toggle the modifier for.

      • Optionalvalue: boolean

        Optional toggling value.

      Returns this