---
title: "Result | 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 Result<T, E>

Result: { result: "success"; value: [T](#t) } | { result: "error"; value: [E](#e) }

A type used for returning and propagating errors. The first element of the union represents success and contains a value, and the second represents an error and contains an error value.

#### Type Parameters

-   T
-   E

#### Private[](#private)
