For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Article

DefinedFunction

Type reference for DefinedFunction in the Rippling SDK, including its public shape and related types.

Use with AI:Rippling AI ChatGPT Claude Cursor

Type definition​

export declare class DefinedFunction<TInput = unknown, TOutput = unknown> {
    getApiName(): string;
    setCode(code: string): this;
    toDict(): Config;
    readonly input: ValueParser<TInput> | undefined;
    readonly output: ValueParser<TOutput> | undefined;
    readonly executions: FunctionExecutions;
    get source(): URL | undefined;
    handler(handler: (input: TInput, context: FunctionContext) => TOutput | Promise<TOutput>): (event: TInput, context: FunctionContext) => Promise<import("@rippling/rippling-sdk").FunctionResponse<TOutput>>;
    execute(ctx: FunctionOperationsContext, input: TInput, options?: RequestOptions): Promise<FunctionExecutionResult<TInput, TOutput>>;
    constructor(props: DefinedFunctionProps<TInput, TOutput>);
}