Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev Guide
Dev GuideUser GuidesLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

LiquidExtensionResult

OCP App SDK / LiquidExtensionResult

LiquidExtensionResult

Result of perform. Clients should use the static success and error helper
methods (as opposed to constructing manually).

Index

Methods

Methods

error()

Builds an error response.

Signature

Static error(message: string): LiquidExtensionResult;

Parameters

NameType
messagestring

Returns

LiquidExtensionResult

Defined in: src/app/lib/LiquidExtensionResult.ts:26

success()

Builds a success response.

Signature

Static success(output: any): LiquidExtensionResult;

Parameters

NameTypeDescription
outputanythe resulting output (must be JSON-serializable)

Returns

LiquidExtensionResult

Defined in: src/app/lib/LiquidExtensionResult.ts:18