interface MyInterface {
someConst:
| {
fullName: string
email: string
}
| null
| undefined
}
I noticed that my linter, tslint, included the initial | in this code snippet.
While I understand that the second and third | represent a union type, I am unsure about the purpose of the first | in this interface. Can someone please explain?