@servicenow/sdk - v4.4.1
    Preparing search index...
    interface SignaturedDeclaration {
        addParameter(
            structure: OptionalKind<ParameterDeclarationStructure>,
        ): ParameterDeclaration;
        addParameters(
            structures: readonly OptionalKind<ParameterDeclarationStructure>[],
        ): ParameterDeclaration[];
        getParameter(name: string): ParameterDeclaration | undefined;
        getParameter(
            findFunction: (declaration: ParameterDeclaration) => boolean,
        ): ParameterDeclaration | undefined;
        getParameterOrThrow(name: string): ParameterDeclaration;
        getParameterOrThrow(
            findFunction: (declaration: ParameterDeclaration) => boolean,
        ): ParameterDeclaration;
        getParameters(): ParameterDeclaration[];
        getReturnType(): Type;
        getReturnTypeNode(): TypeNode<tsc.TypeNode> | undefined;
        getReturnTypeNodeOrThrow(message?: string | (() => string)): TypeNode;
        getSignature(): Signature;
        insertParameter(
            index: number,
            structure: OptionalKind<ParameterDeclarationStructure>,
        ): ParameterDeclaration;
        insertParameters(
            index: number,
            structures: readonly OptionalKind<ParameterDeclarationStructure>[],
        ): ParameterDeclaration[];
        removeReturnType(): this;
        setReturnType(textOrWriterFunction: string | WriterFunction): this;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Gets the return type.

      Returns Type

    • Gets the return type node or throws if none exists.

      Parameters

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

      Returns TypeNode

    • Gets the signature of the node from the type checker.

      Returns Signature

    • Removes the return type.

      Returns this

    • Sets the return type of the node.

      Parameters

      • textOrWriterFunction: string | WriterFunction

        Text or writer function to set the return type with.

      Returns this