Skip to content

Commit

Permalink
chore: Use satisfies instead of as (denoland#2136)
Browse files Browse the repository at this point in the history
Co-authored-by: Marvin Hagemeister <[email protected]>
  • Loading branch information
justjavac and marvinhagemeister authored Dec 4, 2023
1 parent f3578f8 commit 87d1f23
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/latest/examples/migrating-to-tailwind.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
content: [
"{routes,islands,components}/**/*.{ts,tsx}",
],
} as Config;
} satisfies Config;
```

2. Create a css file in your static directory `<project>/static/styles.css`:
Expand Down
2 changes: 1 addition & 1 deletion init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default {
content: [
"{routes,islands,components}/**/*.{ts,tsx}",
],
} as Config;
} satisfies Config;
`;
if (useTailwind) {
await Deno.writeTextFile(
Expand Down
2 changes: 1 addition & 1 deletion tests/fixture_tailwind/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export default {
content: [
"{routes,islands,components}/**/*.{ts,tsx}",
],
} as Config;
} satisfies Config;
2 changes: 1 addition & 1 deletion tests/fixture_tailwind_build/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export default {
content: [
"{routes,islands,components}/**/*.{ts,tsx}",
],
} as Config;
} satisfies Config;
2 changes: 1 addition & 1 deletion www/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export default {
});
}),
],
} as Config;
} satisfies Config;

0 comments on commit 87d1f23

Please sign in to comment.