lathonez / clicker

Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis
http://lathonez.com/2018/ionic-2-unit-testing/
MIT License
430 stars 137 forks source link

Jasmin error #225

Closed cozzbie closed 7 years ago

cozzbie commented 7 years ago
[17:59:35]  typescript: node_modules/@types/jasmine/index.d.ts, line: 39
[17:59:35]  typescript: node_modules/@types/jasmine/index.d.ts, line: 39
[17:59:35]  typescript: node_modules/@types/jasmine/index.d.ts, line: 39
            '=' expected.

      L38:      var clock: () => Clock;
      L40:      function any(aclass: any): Any;

            A parameter initializer is only allowed in a function or constructor implementation.

      L38:      var clock: () => Clock;
      L40:      function any(aclass: any): Any;

            Cannot find name 'keyof'.

      L38:      var clock: () => Clock;
      L40:      function any(aclass: any): Any;
lathonez commented 7 years ago

First issue: http://stackoverflow.com/questions/34148254/a-parameter-initialization-is-allowed-only-in-function-or-constructor-implementa

Second issue: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14569

Re the second issue, make sure you're using the same version of @types/jasmine and typescript as this repo