near / borsh-js

TypeScript/JavaScript implementation of Binary Object Representation Serializer for Hashing
Apache License 2.0
112 stars 38 forks source link

yarn build and yarn test fails #57

Closed ailisp closed 2 years ago

ailisp commented 2 years ago

borsh-js (master) yarn build yarn run v1.22.18 $ tsc -p ./tsconfig.json node_modules/@types/prettier/index.d.ts:41:54 - error TS2315: Type 'IsTuple' is not generic.

41 type IndexProperties<T extends

{ length: number }

= IsTuple extends true

node_modules/@types/prettier/index.d.ts:53:6 - error TS2456: Type alias 'IsTuple' circularly references itself.

53 type IsTuple = T extends [] ? true : T extends [infer First, ...infer Remain] ? IsTuple : false;


 node_modules/@types/prettier/index.d.ts:53:65 - error TS2574: A rest element type must be an array type.

 53 type IsTuple<T> = T extends [] ? true : T extends <span class="error">[infer First, ...infer Remain]</span> ? IsTuple<Remain> : false;

node_modules/@types/prettier/index.d.ts:53:84 - error TS2315: Type 'IsTuple' is not generic.

53 type IsTuple = T extends [] ? true : T extends [infer First, ...infer Remain] ? IsTuple : false;


 node_modules/@types/prettier/index.d.ts:96:5 - error TS2589: Type instantiation is excessively deep and possibly infinite.

 96 call<

node_modules/@types/prettier/index.d.ts:131:5 - error TS2589: Type instantiation is excessively deep and possibly infinite.

131 each<


 node_modules/@types/prettier/index.d.ts:165:5 - error TS2589: Type instantiation is excessively deep and possibly infinite.

 165 map<

Found 7 errors.

error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.