Typescript
migration
byCodemod

Typescript/Remove Public Modifier

/icons/calendar.svg

Last update

Jul 24, 2024

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