Skip to content

Commit ab52562

Browse files
committed
alter type
1 parent 6b22165 commit ab52562

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
'./{build,models,modules,routers,services}/**/*.go',
3838
'./templates/**/*.tmpl',
3939
'./web_src/js/**/*.{ts,js,vue}',
40-
].filter(Boolean as any),
40+
].filter(Boolean as unknown as <T>(x: T | boolean) => x is T),
4141
blocklist: [
4242
// classes that don't work without CSS variables from "@tailwind base" which we don't use
4343
'transform', 'shadow', 'ring', 'blur', 'grayscale', 'invert', '!invert', 'filter', '!filter',

webpack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export default {
270270
excludeAssets: [
271271
/^js\/monaco-language-.+\.js$/,
272272
!isProduction && /^licenses.txt$/,
273-
].filter(Boolean as any),
273+
].filter(Boolean as unknown as <T>(x: T | boolean) => x is T),
274274
groupAssetsByChunk: false,
275275
groupAssetsByEmitStatus: false,
276276
groupAssetsByInfo: false,

0 commit comments

Comments
 (0)