You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is, the types don't allow it. So actually using the satisfies Config on the config object errors saying: Type 'string[]' is not assignable to type 'string'.ts(2322)
So changing the KeyValuePair type in the config.d.ts from
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Background
I wanted to update the
max-h-screen
class to use thedvh
unit, but wanted it to still fallback tovh
for old browser support.Tailwind allows doing that using an array of strings, so this:
results in this:
The Problem
The problem is, the types don't allow it. So actually using the
satisfies Config
on the config object errors saying:Type 'string[]' is not assignable to type 'string'.ts(2322)
So changing the
KeyValuePair
type in theconfig.d.ts
fromto
should do the trick.
If I get the "go", I'd like to create a PR for this.
Beta Was this translation helpful? Give feedback.
All reactions