@servicenow/sdk - v4.4.1
    Preparing search index...
    interface AmbientableNode {
        getDeclareKeyword(): Node<tsc.Node> | undefined;
        getDeclareKeywordOrThrow(message?: string | (() => string)): Node;
        hasDeclareKeyword(): boolean;
        isAmbient(): boolean;
        setHasDeclareKeyword(value?: boolean): this;
    }
    Index

    Methods

    • Gets the declare keyword or undefined if none exists.

      Returns Node<tsc.Node> | undefined

    • Gets the declare keyword or throws if it doesn't exist.

      Parameters

      • Optionalmessage: string | (() => string)

      Returns Node

    • If the node has the declare keyword.

      Returns boolean

    • Gets if the node is ambient.

      Returns boolean

    • Sets if this node has a declare keyword.

      Parameters

      • Optionalvalue: boolean

        To add the declare keyword or not.

      Returns this