@servicenow/sdk - v4.4.1
    Preparing search index...
    interface ExportableNode {
        getDefaultKeyword(): Node<tsc.Node> | undefined;
        getDefaultKeywordOrThrow(message?: string | (() => string)): Node;
        getExportKeyword(): Node<tsc.Node> | undefined;
        getExportKeywordOrThrow(message?: string | (() => string)): Node;
        hasDefaultKeyword(): boolean;
        hasExportKeyword(): boolean;
        isDefaultExport(): boolean;
        isExported(): boolean;
        isNamedExport(): boolean;
        setIsDefaultExport(value: boolean): this;
        setIsExported(value: boolean): this;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Gets the default keyword or throws if none exists.

      Parameters

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

      Returns Node

    • Gets the export keyword or throws if none exists.

      Parameters

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

      Returns Node

    • If the node has the default keyword.

      Returns boolean

    • If the node has the export keyword.

      Returns boolean

    • Gets if this node is a default export of a file.

      Returns boolean

    • Gets if the node is exported from a namespace, is a default export, or is a named export.

      Returns boolean

    • Gets if this node is a named export of a file.

      Returns boolean

    • Sets if this node is a default export of a file.

      Parameters

      • value: boolean

        If it should be a default export or not.

      Returns this

    • Sets if the node is exported.

      Note: Will remove the default keyword if set.

      Parameters

      • value: boolean

        If it should be exported or not.

      Returns this