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
Name | Type |
---|---|
message | string |
Returns
Defined in: src/app/lib/LiquidExtensionResult.ts:26
success()
Builds a success response.
Signature
Static success(output: any): LiquidExtensionResult;
Parameters
Name | Type | Description |
---|---|---|
output | any | the resulting output (must be JSON-serializable) |
Returns
Defined in: src/app/lib/LiquidExtensionResult.ts:18
Updated 2 months ago