Formatting

This commit is contained in:
sinclair
2023-08-29 18:25:24 +09:00
parent 67925c10a3
commit c41d29ae3b
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -25,4 +25,4 @@ import { Type, TSchema, TReadonlyOptional } from '@sinclair/typebox'
function test(_: TReadonlyOptional<TSchema>) {}
// @ts-expect-error
test(T)
}
}
+2 -1
View File
@@ -214,7 +214,8 @@ import { Expect } from './assert'
Expect(T).ToStaticDecode<{ x: '1' }>()
Expect(T).ToStaticDecode<{ x: undefined }>()
}
{ // should decode within generic function context
{
// should decode within generic function context
// https://github.com/sinclairzx81/typebox/issues/554
// prettier-ignore
const ArrayOrSingle = <T extends TSchema>(schema: T) =>