@servicenow/sdk - v4.4.1
    Preparing search index...
    interface NameableNode {
        findReferences(): ReferencedSymbol[];
        findReferencesAsNodes(): Node<tsc.Node>[];
        getName(): string | undefined;
        getNameNode(): Identifier | undefined;
        getNameNodeOrThrow(message?: string | (() => string)): Identifier;
        getNameOrThrow(message?: string | (() => string)): string;
        removeName(): this;
        rename(newName: string, options?: RenameOptions): this;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Gets the name if it exists.

      Returns string | undefined

    • Gets the name node if it exists, or throws.

      Parameters

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

      Returns Identifier

    • Gets the name if it exists, or throws.

      Parameters

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

      Returns string

    • Removes the name from the node.

      Returns this

    • Renames the name of the node.

      Parameters

      • newName: string

        New name.

      • Optionaloptions: RenameOptions

        Options for renaming.

      Returns this