UI: suppress type problems with tailwind

This commit is contained in:
Johannes Kirschbauer
2024-12-20 19:15:37 +01:00
parent e766cf5eaf
commit 450408b6cb

View File

@@ -10,7 +10,7 @@ const toRGB = (value: string) =>
const mkBorderUtils = ( const mkBorderUtils = (
theme: (n: string) => unknown, theme: (n: string) => unknown,
prefix: string, prefix: string,
cssProperty: string, cssProperty: string
) => ({ ) => ({
// - def colors // - def colors
[`.${prefix}-def-1`]: { [`.${prefix}-def-1`]: {
@@ -75,7 +75,9 @@ const mkBorderUtils = (
export default plugin.withOptions( export default plugin.withOptions(
(_options = {}) => (_options = {}) =>
({ addUtilities, theme, addVariant, e }) => { ({ addUtilities, theme, addVariant, e }) => {
// @ts-expect-error: lib of tailwind has no types
addVariant("popover-open", ({ modifySelectors, separator }) => { addVariant("popover-open", ({ modifySelectors, separator }) => {
// @ts-expect-error: lib of tailwind has no types
modifySelectors(({ className }) => { modifySelectors(({ className }) => {
return `.${e(`popover-open${separator}${className}`)}:popover-open`; return `.${e(`popover-open${separator}${className}`)}:popover-open`;
}); });
@@ -276,5 +278,5 @@ export default plugin.withOptions(
}, },
...typography, ...typography,
}, },
}), })
); );