Closed samtjo closed 1 year ago
as
true
andfalse
aren't valid TypeScript types
This is incorrect. Boolean is a type that includes either true
or false
. true
or false
as a hard-coded value is just a constraint (same as you can provide a fixed string or number etc).
The reason this type has the permutations is that:
onResize
callback
Fixes: https://github.com/bvaughn/react-virtualized-auto-sizer/issues/70
Correcting the boolean types, as
true
andfalse
aren't valid TypeScript types