11 lines
257 B
TypeScript
11 lines
257 B
TypeScript
|
declare var console: {
|
||
|
log(message?: any, ...optionalParams: any[]): void;
|
||
|
};
|
||
|
class Greeter {
|
||
|
constructor(message: string) {
|
||
|
}
|
||
|
|
||
|
messageHandler = (message: string) => {
|
||
|
console.log(message); // This shouldnt be error
|
||
|
}
|
||
|
}
|