These are chat archives for TypeStrong/atom-typescript

Jan 2016
Balázs Édes
Jan 19 2016 08:20
Hi guys, how do you maintain the build "artifacts" (js files) that I see in the dist folder of atom-typescript? Do you have a pre commit hook somewhere, that builds everything? Or do you manuall run build before submitting a PR?
This message was deleted
This message was deleted
Manuel Urbano Martínez
Jan 19 2016 18:21

Hi ! Please, how to solve this error?

return this.http.get(webServiceEndpoint + '/species',{
      headers: {
        'Accept': 'application/json, text/plain, */*',
        'Access-Control-Allow-Origin': '*',
        'Authorization': sessionStorage.id_token

Argument of type '{ headers: { string; 'Access-Control-Allow-Origin': string; 'Authorization': any; }; }' is not assignable to parameter of type 'RequestOptionsArgs’.
Property 'id_token' does not exist on type ‘Storage’

I have some more:

.map((species: Array<any>) => {
      let result:Array<SpecieModel> = [];
      if (species) {
        species.species.forEach((specie) => {

Property 'species' does not exist on type 'any[]’

This is for google analytics:

ga('send', 'pageview', '/d');

Cannot find name 'ga’.

Basarat Ali Syed
Jan 19 2016 20:28
@bali182 Use atom typescript and it does the compile on save stuff 🌹
@bali182 Alternatively you can build externally using npm run test