# @enterspeed/js-schema-types

> Strongly typed types for Enterspeed JavaScript schemas.

Latest version **1.16.0** (published 2026-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @enterspeed/js-schema-types
pnpm add @enterspeed/js-schema-types
yarn add @enterspeed/js-schema-types
bun add @enterspeed/js-schema-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.16.0 |
| Published | 2026-09-03 |
| First published | 2024-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Enterspeed |
| Maintainers | alexkarlsen, jesperweber, emilras, elgarslogins, bjarke901, brianme |
| Keywords | enterspeed, schema, javascript, intellisense |

## Links

- npm: https://www.npmjs.com/package/@enterspeed/js-schema-types
- Repository: https://github.com/enterspeedhq/enterspeed-js-schema-types
- Issues: https://github.com/enterspeedhq/enterspeed-js-schema-types/issues
- npm.io page: https://npm.io/package/@enterspeed/js-schema-types

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.16.0 (latest) — 2026-09-03
- 1.5.1 (beta) — 2024-10-28
- 1.15.1 — 2026-08-09
- 1.15.0 — 2026-08-08
- 1.14.0 — 2026-06-24
- 1.13.1 — 2025-12-08
- 1.13.0 — 2025-12-01
- 1.12.0 — 2025-05-15
- 1.11.0 — 2025-04-14
- 1.9.1 — 2025-04-14
- 1.10.0 — 2025-03-28
- 1.9.0 — 2025-03-21
- 1.8.0 — 2025-03-12
- 1.7.0 — 2024-12-06
- 1.6.1 — 2024-12-03
- … 14 more at https://npm.io/package/@enterspeed/js-schema-types/versions

## README

# Intro
With JavaScript schemas, you can build your schemas in a standard language most developers are already familiar with. This means that you have all the power and flexibility from JavaScript available when you are creating your schemas.

This types package goal is to improve developers experience while working with Enterspeed schemas, by providing types to be used by intellisense.

https://docs.enterspeed.com/reference/js/intro

## How to use this package for local schemas development?

1. Install package
```
npm i @enterspeed/js-schema-types
```

2. Configure `jsconfig.json`
```json
{
    "compilerOptions": {
        "strict": true,
        "allowJs": true,
        "checkJs": true,
        "moduleResolution": "node",
        "noEmit": true,
        "target": "ESNext",
        "types": [
            "@enterspeed/js-schema-types"
        ]
    }
}
```

3. Decorate your export object with corresponding schema type
```js
/** @type {Enterspeed.FullSchema} */
export default {
  triggers: function(context) {
    context.triggers('umbraco', ['page', 'article']);
  },
  actions: function(sourceEntity, context) {
    context.reprocess('anotherSchema').bySchema();
    context.destination('algolia');
  },
  routes: (sourceEntity, context) => context.url(sourceEntity.url),
  properties: function (sourceEntity, context) {
    const p = sourceEntity.properties;
    return {
      title: p.title,
      blocks: context.partial("blocks", p.blocks),
      aboutUsPage: context.reference("page").children('type eq `product`').orderBy({direction: 'asc', propertyName: 'asd' }).limit(2),
    }
  }
}
```

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