This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Have fun! | |
// Try to improve the typings used in this code. | |
class Bar { | |
getData(): any { | |
return { id: 1, name: "Sample Data" }; // Simulating a response | |
} | |
processData(data: any, callback: Function): void { | |
// Process the data |