suretype icon indicating copy to clipboard operation
suretype copied to clipboard

Typesafe JSON (Schema) validator

Results 20 suretype issues
Sort by recently updated
recently updated
newest added

Hi, after upgrading to TypeScript 4.7 I got this error: ``` Error: node_modules/suretype/dist/validators/functional.d.ts:25:96 - error TS2344: Type 'T' does not satisfy the constraint '{}'. 25 export declare type AdditionalProperties =...

This validator: ``` v .object({ id: v.string().required(), username: v.string(), nested: v.object({ email: v.string(), }), }) ``` Will produce this json-schema: ``` { type: 'object', properties: { id: { type: 'string'...

Say we have the following TS interface ``` interface Fish { name: string; } ``` If you create an object of that type and give it extra properties, Typescript throws...

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @​mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @​OlafConijn in...

dependencies

Hi there! Do you have plans to support CommonJS, e.g. via a bundler, in the future? Due to Jest and some other parts of the ecosystem which are not there...

Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1. Release notes Sourced from semver's releases. v6.3.1 6.3.1 (2023-07-10) Bug Fixes 928e56d #591 better handling of whitespace (#591) (@​lukekarrys, @​joaomoreno, @​nicolo-ribaudo) Changelog Sourced from...

dependencies

It seems that when using suretype in an Electron app, index.js is being loaded twice. As a result, event handlers are registered twice and states are also duplicated. Since the...

I want to create a type by modifying another type like below. But, I don't want to export `typeAProps`. I want to create `TypeB` from `TypaA._properties` but `_properties` is private....

What I'm looking for is a validator that would ensure that I have a function of acertain return type and arguments. In zod there is something like this: ``` z.function().args([z.string(),...

I see there's a similar peoject here: https://github.com/sinclairzx81/typebox and wonder how the two compare.