@arrirpc/typebox-adapter 0.54.0 → 0.55.0

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/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AAdaptedObjectSchema, AAdaptedRecordSchema, AAdaptedSchema } from '@arrirpc/schema';
2
2
  import { TSchema, TObject, Static, TRecord } from '@sinclair/typebox';
3
3
 
4
- declare function typeboxAdapter<TInput extends TSchema>(input: TInput): TInput extends TObject ? AAdaptedObjectSchema<Static<TInput>> : TInput extends TRecord ? AAdaptedRecordSchema<Static<TInput> extends Record<string, any> ? Static<TInput>[string] : any> : AAdaptedSchema<Static<TInput>>;
4
+ declare function typeboxAdapter<TInput extends TSchema>(input: TInput): TInput extends TObject ? AAdaptedObjectSchema<Static<TInput>> : TInput extends TRecord ? AAdaptedRecordSchema<any> : AAdaptedSchema<Static<TInput>>;
5
5
 
6
6
  export { typeboxAdapter };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AAdaptedObjectSchema, AAdaptedRecordSchema, AAdaptedSchema } from '@arrirpc/schema';
2
2
  import { TSchema, TObject, Static, TRecord } from '@sinclair/typebox';
3
3
 
4
- declare function typeboxAdapter<TInput extends TSchema>(input: TInput): TInput extends TObject ? AAdaptedObjectSchema<Static<TInput>> : TInput extends TRecord ? AAdaptedRecordSchema<Static<TInput> extends Record<string, any> ? Static<TInput>[string] : any> : AAdaptedSchema<Static<TInput>>;
4
+ declare function typeboxAdapter<TInput extends TSchema>(input: TInput): TInput extends TObject ? AAdaptedObjectSchema<Static<TInput>> : TInput extends TRecord ? AAdaptedRecordSchema<any> : AAdaptedSchema<Static<TInput>>;
5
5
 
6
6
  export { typeboxAdapter };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AAdaptedObjectSchema, AAdaptedRecordSchema, AAdaptedSchema } from '@arrirpc/schema';
2
2
  import { TSchema, TObject, Static, TRecord } from '@sinclair/typebox';
3
3
 
4
- declare function typeboxAdapter<TInput extends TSchema>(input: TInput): TInput extends TObject ? AAdaptedObjectSchema<Static<TInput>> : TInput extends TRecord ? AAdaptedRecordSchema<Static<TInput> extends Record<string, any> ? Static<TInput>[string] : any> : AAdaptedSchema<Static<TInput>>;
4
+ declare function typeboxAdapter<TInput extends TSchema>(input: TInput): TInput extends TObject ? AAdaptedObjectSchema<Static<TInput>> : TInput extends TRecord ? AAdaptedRecordSchema<any> : AAdaptedSchema<Static<TInput>>;
5
5
 
6
6
  export { typeboxAdapter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/typebox-adapter",
3
- "version": "0.54.0",
3
+ "version": "0.55.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -22,11 +22,11 @@
22
22
  "directory": "tooling/schema-typebox-adapter"
23
23
  },
24
24
  "dependencies": {
25
- "@arrirpc/schema": "0.54.0",
26
- "json-schema-to-jtd": "0.54.0"
25
+ "@arrirpc/schema": "0.55.0",
26
+ "json-schema-to-jtd": "0.55.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@arrirpc/server": "0.54.0"
29
+ "@arrirpc/server": "0.55.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@sinclair/typebox": "^0.32"