Typescript/Remove Public Modifier

1.0.1Last update Jul 24, 2024
by@Codemod
Typescript
migration

This codemod removes public modifier in interface declarations as it is implicit.

Before

class MyClass {
public myProperty: string;
public constructor() {
}
public myMethod(): void {
}
}

After

class MyClass {
myProperty: string;
constructor() {
}
myMethod(): void {
}
}

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now