Type '{ length: number | undefined; offset: number; index: number; }' is not assignable to type '{ length: number; offset: number; index: number; }'.
Types of property 'length' are incompatible.
Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
Would it be possible to change:
length: number | undefined;
to match react-native
length: number;
I'm not sure if this is possible, it's just that I get a TS error. Or maybe it's how I'm using it. :)
In the index.d.ts there is the following:
In the react-native SectionList is:
I'm getting a TS error like so:
Would it be possible to change:
to match react-native
I'm not sure if this is possible, it's just that I get a TS error. Or maybe it's how I'm using it. :)