---
title: "Task | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias Task

type Task \= {  
    [callback](#callback): (timeStamp: number) \=> void;  
    [cancelled](#cancelled): boolean;  
    [id](#id): [TaskID](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TaskID/);  
}

##### Index

### Properties[](#properties)

[callback](#callback) [cancelled](#cancelled) [id](#id)

## Properties[](#properties-1)

### callback[](#callback)

callback: (timeStamp: number) \=> void

### cancelled[](#cancelled)

cancelled: boolean

### id[](#id)

id: [TaskID](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TaskID/)
