UNPKG

nestjs-typebox

Version:

This library provides helper utilities for writing and validating NestJS APIs using [TypeBox](https://github.com/sinclairzx81/typebox) as an alternative to class-validator/class-transformer. Can be configured to patch @nestjs/swagger allowing OpenAPI gene

68 lines (67 loc) 1.93 kB
{ "name": "nestjs-typebox", "version": "4.0.0", "description": "", "author": "Andrew Smiley <jayalfredprufrock@gmail.com>", "license": "MIT", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "src", "dist" ], "scripts": { "start": "tsc --watch", "build": "tsc", "lint": "eslint \"src/**/*.ts\" --fix", "prepare": "husky install", "test": "npx tsx test.ts" }, "lint-staged": { "./{src,test}/**/*.ts": [ "eslint --fix" ] }, "peerDependencies": { "@nestjs/common": "^9.0.1 || ^10.0.3 || ^11.0.6", "@nestjs/core": "^9.0.1 || ^10.0.3 || ^11.0.6", "@nestjs/swagger": "^6.1.1 || ^7.0.11 || ^11.0.3", "@sinclair/typebox": "^0.34.0", "rxjs": "^7.5.6" }, "devDependencies": { "@changesets/cli": "^2.26.2", "@nestjs/common": "^11.0.6", "@nestjs/core": "^11.0.6", "@nestjs/swagger": "^11.0.3", "@sinclair/typebox": "^0.34.0", "@types/node": "^20.4.1", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.44.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-require-extensions": "^0.1.3", "eslint-plugin-simple-import-sort": "^10.0.0", "husky": "^8.0.3", "lint-staged": "^15.2.0", "prettier": "^3.0.0", "rxjs": "^7.8.1", "typescript": "^5.1.6" }, "publishConfig": { "access": "public" }, "keywords": [ "typebox", "nestjs", "json-schema", "nestjs-typebox", "class-validator" ], "repository": { "type": "git", "url": "https://github.com/jayalfredprufrock/nestjs-typebox" } }