chore: modernize typescript api client/types imports (#23637)

This commit is contained in:
Kayla はな
2026-03-25 15:21:19 -06:00
committed by GitHub
parent 09bcd0b260
commit 0e69e0eaca
646 changed files with 1708 additions and 1689 deletions
-24
View File
@@ -341,27 +341,3 @@ user.click(screen.getByRole("button"));
const form = screen.getByTestId("form");
user.click(within(form).getByRole("button"));
```
❌ Does not work
```ts
import { getUpdateCheck } from "api/api"
createMachine({ ... }, {
services: {
getUpdateCheck,
},
})
```
✅ It works
```ts
import { getUpdateCheck } from "api/api"
createMachine({ ... }, {
services: {
getUpdateCheck: () => getUpdateCheck(),
},
})
```