Typescript/Remove Public Modifier
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
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