top | item 45371913

(no title)

quink | 5 months ago

Just make it a well-defined class.

Like option structs in Go. Simple.

discuss

order

seivan|5 months ago

That would pollute the namespace. The type could be namespaced under the function signature, it's not its own type unless you extract it with FunctionParamater<typeof ..>[0] or along those lines.