class Person {
private firstName: string;
private lastName: string;
constructor(firstName: string, lastName: string) {
this.firstName = firstName;
this.lastName = lastName;
}
public getFullName() {
return `${this.firstName} ${this.lastName}`;
}
}
export = Person;
# find all imports and exports in typescript or js es6 project
ag --nonumbers --only-matching 'import.*$|(export [A-z]+ [A-z]+)' .
exports["default"] = A; module.exports = exports["default"];