# Typescript

## TS SDK Typescript <a href="#ts-sdk-typescript" id="ts-sdk-typescript"></a>

Endless SDK is designed to be type-safe! Things to keep in mind:

* Types currently require using TypeScript `v5.2.2` or greater.
* Changes to types in this repository are considered non-breaking and are usually released as patch semver changes (otherwise every type enhancement would be a major version!).
* It is highly recommended that you lock your `@endlesslab/endless-ts-sdk` package version to a specific patch release and upgrade with the expectation that types may be fixed or upgraded between any release.

### Local types <a href="#local-types" id="local-types"></a>

The SDK exports types on the top level and defines and holds all types locally and not using any external type generator excluding for Indexer GraphQL schema that even then the SDK customizes the generated types to be more user friendly and understandable.

You can check the types the SDK supports and exports on the [SDK documentation site](/endless/devbuild/build/endless-sdks/typescript-sdk/typescript.md) organized by SDK version


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.endless.link/endless/devbuild/build/endless-sdks/typescript-sdk/typescript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
