# @swell/app-types

> TypeScript bindings for Swell Apps

Latest version **1.2.4** (published 2026-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @swell/app-types
pnpm add @swell/app-types
yarn add @swell/app-types
bun add @swell/app-types
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2026-06-29 |
| First published | 2023-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Swell |
| Maintainers | ei, papertokyo, dminch-swell |

## Links

- npm: https://www.npmjs.com/package/@swell/app-types
- Repository: https://github.com/swellstores/app-types
- Homepage: https://github.com/swellstores/app-types#readme
- Issues: https://github.com/swellstores/app-types/issues
- npm.io page: https://npm.io/package/@swell/app-types

## Recent versions

- 1.2.4 (latest) — 2026-06-29
- 1.2.3 — 2026-06-16
- 1.2.2 — 2026-06-15
- 1.2.1 — 2026-06-02
- 1.2.0 — 2026-04-22
- 1.1.2 — 2026-04-15
- 1.1.1 — 2025-10-22
- 1.1.0 — 2023-12-08
- 1.0.5 — 2023-11-06
- 1.0.4 — 2023-11-06
- 1.0.3 — 2023-11-04
- 1.0.2 — 2023-11-03
- 1.0.1 — 2023-11-03
- 1.0.0 — 2023-11-03

## README

# Swell App Types

TypeScript bindings for Swell Apps.

## Install

```bash
npm install @swell/app-types -D
-- Or
yarn add @swell/app-types -D
```

## Usage

The following is a minimal `tsconfig.json` for use alongside this package:

**`tsconfig.json`**

```json
{
  "compilerOptions": {
    "target": "esnext",
    "module": "esnext",
    "lib": ["esnext"],
    "types": ["@swell/app-types"]
  }
}
```

### Importable Types

It's not always possible (or desirable) to modify the `tsconfig.json` settings for a project to include all the Swell app types. For use cases like that, this package provides importable versions of its types, which are usable with no additional `tsconfig.json` setup. For example:

```ts
import type { SwellRequest, SwellResponse } from "@swell/app-types"

export default async function (request: SwellRequest) {
    return new SwellResponse({ success: true })
  }
}
```

---
_Source: https://npm.io/package/@swell/app-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
