3ca08916d4
This could be true if expression cannot be resolved resulting in error
27 lines
722 B
Plaintext
27 lines
722 B
Plaintext
tests/cases/compiler/service.ts(1,8): error TS1192: Module '"tests/cases/compiler/db"' has no default export.
|
|
|
|
|
|
==== tests/cases/compiler/db.ts (0 errors) ====
|
|
export class db {
|
|
public doSomething() {
|
|
}
|
|
}
|
|
|
|
==== tests/cases/compiler/service.ts (1 errors) ====
|
|
import db from './db'; // error no default export
|
|
~~
|
|
!!! error TS1192: Module '"tests/cases/compiler/db"' has no default export.
|
|
function someDecorator(target) {
|
|
return target;
|
|
}
|
|
@someDecorator
|
|
class MyClass {
|
|
db: db.db;
|
|
|
|
constructor(db: db.db) {
|
|
this.db = db;
|
|
this.db.doSomething();
|
|
}
|
|
}
|
|
export {MyClass};
|
|
|