TS1244

error TS1244: Abstract methods can only appear within an abstract class.

Bad Code ❌

1
2
3
class Animal {
abstract makeNoise(): string;
}

Fixed Code ✔️

1
2
3
abstract class Animal {
abstract makeNoise(): string;
}