Fuse-box: Smoother experience for TypeScript

Created on 12 Feb 2017  路  3Comments  路  Source: fuse-box/fuse-box

Just a couple of things that would make it "just work" for more users:

  1. Default behaviour for finding tsconfig.json is to look in home folder. Maybe search up the folder hierarchy?

  2. Automatically include TypeScriptHelpers plugin if needed.

enhancement

Most helpful comment

Additional problem, I write the following code

class Demo {

  greet (n: number) {
    console.log(3 * n)
  }

}

let demo = new Demo()
demo.greet("Hello marc") // NaN

I would expect the build to detect the problem and throw an error (or at least show something in the console). tsc throw something like error TS2345: Argument of type '"Hello marc"' is not assignable to parameter of type 'number'

All 3 comments

Thanks! We actually moved this issue on top of everything else. Seems like people are complaining about it.

Additional problem, I write the following code

class Demo {

  greet (n: number) {
    console.log(3 * n)
  }

}

let demo = new Demo()
demo.greet("Hello marc") // NaN

I would expect the build to detect the problem and throw an error (or at least show something in the console). tsc throw something like error TS2345: Argument of type '"Hello marc"' is not assignable to parameter of type 'number'

Automatic tsconfig.json lookup has been implemented in 1.3.110. Let's create a different issue regarding typescript helpers and a type checker daemon

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xdave picture xdave  路  5Comments

twop picture twop  路  4Comments

viankakrisna picture viankakrisna  路  5Comments

nchanged picture nchanged  路  5Comments

misantronic picture misantronic  路  3Comments