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