4 ms·
Isn’t kind just overriding the type checker? Should that as be necessary?
by ec109685 2y ago
Isn’t kind just overriding the type checker? Should that as be necessary?
- samuelstros 2y agoYes. The runtime was not affected. Hence, the ts-expect-error. Still nice to have the ts-expect-error fixed :)
- surrealize 2y agoIn the context of the union query, I think it makes sense. The query takes two different columns (with two different names) from the same table, and combines them together into one column. The TS error happened because the column names didn't match between the two union inputs. But they would never match without the "as".