Publish
This commit is contained in:
13
test/static/parameters.ts
Normal file
13
test/static/parameters.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
|
||||
const C = Type.Function(
|
||||
[Type.Number(), Type.String()],
|
||||
Type.Object({
|
||||
method: Type.Function([Type.Number(), Type.String()], Type.Boolean()),
|
||||
}),
|
||||
)
|
||||
|
||||
const P = Type.Parameters(C)
|
||||
|
||||
Expect(P).ToStatic<[number, string]>()
|
||||
Reference in New Issue
Block a user