Interface: GalaxyResult
Defined in: src/_other-scraper/galaxyai.ts:60
The GalaxyResult interface defines the structure of the result returned by the GalaxyAI SDK, encapsulating both the success state and potential error information.
Properties
success
- Type:
boolean - Description: Indicates whether the GalaxyAI operation was successful or not.
Defined in: src/_other-scraper/galaxyai.ts:61
code
- Type:
number - Description: A numeric code representing the status of the operation. It can provide additional contextual information about the success or failure of the result.
Defined in: src/_other-scraper/galaxyai.ts:62
result
- Type:
GalaxySuccessResult| {error:string} - Description: Contains the result of the operation. If successful, it will return an object conforming to the
GalaxySuccessResultinterface. If unsuccessful, it will contain anerrorproperty with a descriptive error message.
Defined in: src/_other-scraper/galaxyai.ts:63
Example
const galaxyResult: GalaxyResult = {
success: true,
code: 200,
result: {
/* success result fields */
},
};Last updated on