{"library":"schema-decorator","type":"library","category":null,"description":"DEPRECATED TypeScript library for runtime type validation and sanitization using decorators, version 2.61.2. Originally designed to secure web apps by validating route params, query strings, JSON bodies, and responses, plus schemaless database data. Offers AssertDelegate<> and sd.check<> for runtime enforcement with compile-time type inference via TypeOf<> and AcceptsOf<>. Deprecated in favor of type-mapping.","language":"javascript","status":"deprecated","version":"2.61.2","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install schema-decorator","imports":["import * as sd from 'schema-decorator'","import * as sd from 'schema-decorator'; const x = sd.naturalNumber()('x', 34)","import * as sd from 'schema-decorator'; type N = sd.TypeOf<typeof someAssert>","import * as sd from 'schema-decorator'; sd.check(sd.naturalNumber(), 'x', 34)"]},{"cmd":"yarn add schema-decorator","imports":[]},{"cmd":"pnpm add schema-decorator","imports":[]}],"homepage":"https://github.com/AnyhowStep/schema-decorator#readme","github":"https://github.com/AnyhowStep/schema-decorator","docs":null,"changelog":null,"pypi":null,"npm":"schema-decorator","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}