This PR adds support for optional and readonly Function and Constructor arguments. This PR only updates inference for these types.
const T = Type.Function([
Type.Number(),
Type.Optional(Type.Number())
], Type.Number())
type T = Static<typeof T>
// type T = (param_0: number, param_1?: number) => number
This PR adds support for optional and readonly Function and Constructor arguments. This PR only updates inference for these types.