# TypeScript

Vueless UI provides first-class TypeScript support, ensuring you get full type safety, autocompletion, and IntelliSense across your entire project.

## Vue and Nuxt

Add a reference to the Vueless module types in your project’s global type declarations:

{% code title="env.d.ts" %}

```typescript
/// <reference types="vueless/modules" />
```

{% endcode %}

&#x20;Or define them directly in your `tsconfig.json`:

{% code title="tsconfig.json" %}

```json
{
  "compilerOptions": {
    ...
    "types": [
      "vueless/modules",
    ]
  },
}
```

{% endcode %}

## Vue

Add type declarations for components to provide prop autocompletion in IDEs.

{% code title="tsconfig.json" %}

```json
{
  "include": [
    ...
    "components.d.ts",
  ],
}
```

{% endcode %}

## Nuxt

Add this rule to override the default Nuxt TypeScript preset:

{% code title="tsconfig.json" %}

```json
{
  "compilerOptions": {
    ...
    "noUncheckedIndexedAccess": false,
  }
}
```

{% endcode %}


---

# 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.vueless.com/installation/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.
