Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.4.0
Description
Typescript isĀ generatingĀ an overly broad type for the `typeId` property of the ChunkedVector class, leading to a type mismatch and failure to infer Column<T> is Vector<T>:
let col: Vector<Utf8>; col = new Chunked(new Utf8()); ^ /* Argument of type 'Chunked<Utf8>' is not assignable to parameter of type 'Vector<Utf8>'. Type 'Chunked<Utf8>' is not assignable to type 'Vector<Utf8>'. Types of property 'typeId' are incompatible. Type 'Type' is not assignable to type 'Type.Utf8'. */
The fix is to add an explicit return annotation to the Chunked typeId getter.
Attachments
Issue Links
- links to