devanshj/sthir

Build failing due to parsing error

devanshj opened this issue ยท 0 comments

$ cd packages/number
$ yarn build
[...]
๐ŸŽ error /workspace/sthir/packages/number/src/types.ts: Unexpected token, expected "?" (36:37)
๐ŸŽ error
๐ŸŽ error   34 |       : never :
๐ŸŽ error   35 |   T extends `0b${infer X}` ? Nb.ToNumber<A.Cast<S.Split<X, "">, Nb.Unknown>> :
๐ŸŽ error > 36 |   T extends `${infer X extends number}` ? X :
๐ŸŽ error      |                                      ^
๐ŸŽ error   37 |   `Error: Cannot parse expression '${T}'`
๐ŸŽ error   38 |
๐ŸŽ error   39 | type Test0 = A.Test<A.AreEqual<E<"5">, 5>>
[...]

cc @Andarist