Closed Lehoczky closed 2 years ago
When someone uses the library with TypeScript and strictNullChecks, the menu option cannot be set to null, because it's current type is Menu | undefined.
menu
Menu | undefined
By changing the type in interfaces.ts, TypeScript no longer shows an error:
interfaces.ts
When someone uses the library with TypeScript and strictNullChecks, the
menu
option cannot be set to null, because it's current type isMenu | undefined
.By changing the type in
interfaces.ts
, TypeScript no longer shows an error: