wessberg / DI-compiler

A Custom Transformer for Typescript that enables compile-time Dependency Injection
MIT License
82 stars 7 forks source link

Issues with derived classes transpiled by Typescript #1

Closed wessberg closed 7 years ago

wessberg commented 7 years ago

When typescript transpiles a constructor-less derived class, it compiles it into:


// super class
class A {
    constructor (fooService)
}

// derived class
class B {
     constructor () {
        super(...arguments);
     }
}

This breaks.

wessberg commented 7 years ago

This is a non-issue