Skip to content

Commit 480ed2f

Browse files
authored
Version 1.1.26 (#1578)
* Presentation Update for Static Record * ChangeLog * Version
1 parent 22b3aa7 commit 480ed2f

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

changelog/1.1.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
---
44

55
### Version Updates
6+
- [Revision 1.1.26](https://github.com/sinclairzx81/typebox/pull/1578)
7+
- Presentation Update for Record Inference
68
- [Revision 1.1.25](https://github.com/sinclairzx81/typebox/pull/1577)
79
- Optimize Native Schema Inference via Type Static
810
- [Revision 1.1.24](https://github.com/sinclairzx81/typebox/pull/1576)

src/type/types/record.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ type StaticPropertyKey<Key extends string, Result extends PropertyKey = (
5555
Key extends `^${string}$` ? TTemplateLiteralStatic<Key> :
5656
string
5757
)> = Result
58-
export type StaticRecord<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Key extends string, Value extends TSchema,
59-
StaticKey extends PropertyKey = StaticPropertyKey<Key>,
58+
export type StaticRecord<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Key extends string, Value extends TSchema,
59+
StaticKey extends PropertyKey = StaticPropertyKey<Key>,
6060
StaticValue extends unknown = StaticType<Stack, Direction, Context, This, Value>,
61-
> = Record<StaticKey, StaticValue>
61+
Result extends Record<PropertyKey, unknown> = Record<StaticKey, StaticValue>
62+
> = Result
6263
// -------------------------------------------------------------------
6364
// Keys
6465
// -------------------------------------------------------------------

tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Metrics } from './task/metrics/index.ts'
99
import { Spec } from './task/spec/index.ts'
1010
import { Task } from 'tasksmith'
1111

12-
const Version = '1.1.25'
12+
const Version = '1.1.26'
1313

1414
// ------------------------------------------------------------------
1515
// Build

0 commit comments

Comments
 (0)