chore: Use satisfies instead of as (#2136)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
@@ -18,7 +18,7 @@ export default {
|
|||||||
content: [
|
content: [
|
||||||
"{routes,islands,components}/**/*.{ts,tsx}",
|
"{routes,islands,components}/**/*.{ts,tsx}",
|
||||||
],
|
],
|
||||||
} as Config;
|
} satisfies Config;
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Create a css file in your static directory `<project>/static/styles.css`:
|
2. Create a css file in your static directory `<project>/static/styles.css`:
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ export default {
|
|||||||
content: [
|
content: [
|
||||||
"{routes,islands,components}/**/*.{ts,tsx}",
|
"{routes,islands,components}/**/*.{ts,tsx}",
|
||||||
],
|
],
|
||||||
} as Config;
|
} satisfies Config;
|
||||||
`;
|
`;
|
||||||
if (useTailwind) {
|
if (useTailwind) {
|
||||||
await Deno.writeTextFile(
|
await Deno.writeTextFile(
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ export default {
|
|||||||
content: [
|
content: [
|
||||||
"{routes,islands,components}/**/*.{ts,tsx}",
|
"{routes,islands,components}/**/*.{ts,tsx}",
|
||||||
],
|
],
|
||||||
} as Config;
|
} satisfies Config;
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ export default {
|
|||||||
content: [
|
content: [
|
||||||
"{routes,islands,components}/**/*.{ts,tsx}",
|
"{routes,islands,components}/**/*.{ts,tsx}",
|
||||||
],
|
],
|
||||||
} as Config;
|
} satisfies Config;
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ export default {
|
|||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
} as Config;
|
} satisfies Config;
|
||||||
|
|||||||
Reference in New Issue
Block a user