ravendb/ravendb-nodejs-client

Issue with 5.0.1

st0014 opened this issue · 3 comments

Switched to 5.0.1, and when building, the following errors occured:

node_modules/ravendb/dist/Types/index.d.ts:49:28 - error TS1005: ']' expected.

49 [K in keyof T & string as ${Capitalize<K>}]: T[K] extends Array ? R extends string ? R[] : ServerCasing[] : T[K] extends object ? ServerCasing<T[K]> : T[K];
~~

node_modules/ravendb/dist/Types/index.d.ts:49:47 - error TS1005: '(' expected.

49 [K in keyof T & string as ${Capitalize<K>}]: T[K] extends Array ? R extends string ? R[] : ServerCasing[] : T[K] extends object ? ServerCasing<T[K]> : T[K];
~

node_modules/ravendb/dist/Types/index.d.ts:51:1 - error TS1160: Unterminated template literal.

51

ml054 commented

What's your TypeScript version?

ml054 commented

@st0014 Confirmed this is a bug. In package.json we require typescript 4.0+. But Capitalize etc are available in TS 4.1+. Will fix that soon.