Files
typebox/test/static/parameters.ts
sinclair 13d553220c Publish
2025-12-24 15:44:34 +09:00

14 lines
304 B
TypeScript

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]>()