Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.07 KB

File metadata and controls

52 lines (39 loc) · 1.07 KB

TaskStatus

Properties

Name Type
status string
taskType string
description string
info any
pctComplete string
estimatedTimeRemaining string
timeStarted string
timeTotal string
cleanUp any
error any

Example

import type { TaskStatus } from '@geoengine/api-client'

// TODO: Update the object below with actual values
const example = {
  "status": null,
  "taskType": null,
  "description": null,
  "info": null,
  "pctComplete": null,
  "estimatedTimeRemaining": null,
  "timeStarted": null,
  "timeTotal": null,
  "cleanUp": null,
  "error": null,
} satisfies TaskStatus

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as TaskStatus
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]