Roman Jámbor

Results 109 comments of Roman Jámbor

But if you have some points, you can submit a PR. 🙂

Detect if the parameter has initializer (that's how TypeScript compiler calls default value) is simple, if the parameter is rest parameter (`...foo`) too. But I have to think about the...

Hmm this will be the most problematic case IMHO. ```typescript class Foo { constructor(private _foo: any) {} foo(foo: any = this._foo) { } } ``` Initializer is `this._foo`. That cannot...

I implemented the simple part in v1 (detection if the parameter is the rest parameter, if it has initializer and serialization of constant initializer).

Your investigation around `param = new Something()` initializers is still relevant.

@leohubert What if we do something like this in runtime? ```typescript class ParameterInfo { .... +++ get initializer(): Initializer; ... } class Initializer { isConstant(): this is ConstantInitializer; isInstance(): this...

@leohubert is there any progress?

That simplification is what TypeScript does, that's how the `type` aliases works. It's just "virtual" placeholder; it's not a real type. Type alias is direct type reference or alias/placeholder for...

This is added to each root/entry file. If you configure your tsconfig like `include: "**/*.ts"`, all the matched files are meant as root files. Each of that file can be...