Skip to content

Result

Result<T>: {component: string;data: T;echo: any;error: NGError;success: boolean; }

Contains information returned by an API component.

Type parameters

Type parameter
T extends object

Type declaration

MemberTypeDescription
componentstringThe name of the component that was executed (ie ‘Medal.unlock’).
dataTAn object, or array of one-or-more objects, containing any returned properties or errors.
echoanyIf you passed an ‘echo’ value in your execute object, it will be echoed here.
errorNGErrorThis will contain any error info if the success property is false.
successbooleanIf false, there was a problem with your ‘request’ object. Details will be in the error property.

Source

newgrounds.d.ts:94