Skip to content

Instantly share code, notes, and snippets.

@pbechliv
pbechliv / type-improvements.ts
Created November 21, 2024 09:49
Typescript Teaser
// 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