Skip to content

Commit

Permalink
Custom Constraints (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Nov 25, 2022
1 parent 18f892b commit 1801754
Show file tree
Hide file tree
Showing 17 changed files with 165 additions and 151 deletions.
4 changes: 2 additions & 2 deletions example/index.ts
Expand Up @@ -5,7 +5,7 @@ import { TypeGuard } from '@sinclair/typebox/guard'
import { Format } from '@sinclair/typebox/format'
import { Custom } from '@sinclair/typebox/custom'
import { Value, ValuePointer } from '@sinclair/typebox/value'
import { Type, Static, TSchema } from '@sinclair/typebox'
import { Type, Kind, Static, TSchema } from '@sinclair/typebox'

const T = Type.Object({
x: Type.Number(),
Expand All @@ -15,4 +15,4 @@ const T = Type.Object({

type T = Static<typeof T>

console.log(T)
console.log(T)
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "@sinclair/typebox",
"version": "0.25.9",
"version": "0.25.10",
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
"keywords": [
"typescript",
Expand Down Expand Up @@ -39,12 +39,12 @@
"@sinclair/hammer": "^0.17.1",
"@types/chai": "^4.3.3",
"@types/mocha": "^9.1.1",
"@types/node": "^18.7.13",
"ajv": "^8.11.0",
"@types/node": "^18.11.9",
"ajv": "^8.11.2",
"ajv-formats": "^2.1.1",
"chai": "^4.3.6",
"mocha": "^9.2.2",
"prettier": "^2.7.1",
"typescript": "^4.8.2"
"typescript": "^4.9.3"
}
}

0 comments on commit 1801754

Please sign in to comment.