DefinedFunction | Rippling Developer
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.
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>);
}