Types

ESM compatible stand-alone typings are available as of squared 5.5.

squared

TS

5.5.x

5.8.3

5.6.x

5.9.2

5.7.x

5.9.3

5.8.x

6.0.3

Installation

npm i squared-types

Note

Dual installations with local typings are not supported such as within the squared repository.

tsconfig.json

Required
{
  "compilerOptions": {
    "target": "es2022",
    "module": "es6",
    "lib": ["dom"],
    "typeRoots": ["node_modules/squared-types"]
  }
}

Tip

You can do the same thing with squared-express 4.0 using typeRoot node_modules/squared-express and the UMD global sqex.