mirror of
https://github.com/zoriya/typebox.git
synced 2026-05-26 00:07:49 +00:00
Formatting
This commit is contained in:
@@ -25,4 +25,4 @@ import { Type, TSchema, TReadonlyOptional } from '@sinclair/typebox'
|
||||
function test(_: TReadonlyOptional<TSchema>) {}
|
||||
// @ts-expect-error
|
||||
test(T)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user