Skip to content

Commit e6caa08

Browse files
fix: resolve typecheck errors
1 parent 38d57fd commit e6caa08

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/crosswind/src/rules-interactivity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const filterRule: UtilityRule = (parsed) => {
5757
}
5858
}
5959

60-
export const backdropFilterRule: UtilityRule = (parsed) => {
60+
export const backdropFilterRule: UtilityRule = (parsed): Record<string, string> | undefined => {
6161
// Handle backdrop-filter-none
6262
if (parsed.raw === 'backdrop-filter-none') {
6363
return { 'backdrop-filter': 'none' }

packages/crosswind/src/transformer-compile-class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function transformContent(
108108
const generatedClass = compiledClassMap.get(classKey)
109109

110110
if (generatedClass) {
111-
const attrName = match[0].startsWith('class='? )'class' : 'className'
111+
const attrName = match[0].startsWith('class=') ? 'class' : 'className'
112112
const quote = match[0].includes('"') ? '"' : '\''
113113
const replacement = `${attrName}=${quote}${generatedClass}${quote}`
114114

0 commit comments

Comments
 (0)