Closed dessalines closed 2 years ago
I'd like to use these Option types in an API, IE currently an interface might be:
interface Person { name: string; display_name?: string // I'd like this to be display_name: Option<string>; ... }
Would this be supported?
as far as I understand this issue correctly, it is possible, since under the hood Option<T> is T | null | undefined
Option<T>
T | null | undefined
feel free to reopen this issue if you need more clarification
I'd like to use these Option types in an API, IE currently an interface might be:
Would this be supported?