@sinclair/typebox 0.24.6 → 0.24.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/guard/guard.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare namespace TypeGuard {
28
28
  /** Returns true if the given schema is TSelf */
29
29
  function TSelf(schema: any): schema is Types.TSelf;
30
30
  /** Returns true if the given schema is TRef */
31
- function TRef(schema: any): schema is Types.TSelf;
31
+ function TRef(schema: any): schema is Types.TRef;
32
32
  /** Returns true if the given schema is TString */
33
33
  function TString(schema: any): schema is Types.TString;
34
34
  /** Returns true if the given schema is TTuple */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.24.6",
3
+ "version": "0.24.7",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "json-schema",
package/readme.md CHANGED
@@ -450,7 +450,8 @@ In addition to JSON schema types, TypeBox provides several extended types that a
450
450
  │ │ │ │
451
451
  ├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤
452
452
  │ const T = Type.Undefined() │ type T = undefined │ const T = { │
453
- │ │ │ type: 'undefined'
453
+ │ │ │ type: 'object'
454
+ │ │ │ specialized: 'Undefined' │
454
455
  │ │ │ } │
455
456
  │ │ │ │
456
457
  ├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤