Poulet42/Declare Ts Services

1.0.1Last update Jan 9, 2025
by@poulet42

Example

This codemod transforms @service decorators to use the correct TypeScript syntax

Before

@service myService;

After

import { type Registry as Services } from '@ember/service';
...
@service declare myService: Services['myService'];

Build custom codemods

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

background illustrationGet Started Now