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
presetUno() will result in a type error, but it does not appear from the README that any options are required.
Am I using it wrong?
❯ deno check main.tsx
Check file://path/to/project/main.tsx
error: TS2322 [ERROR]: Type 'Preset<Theme>' is not assignable to type'Preset<{}> | Preset<{}>[]'.
Type 'Preset<Theme>' is not assignable to type'Preset<{}>'.
Types of property 'rules' are incompatible.
Type 'Rule<Theme>[] | undefined' is not assignable to type'Rule<{}>[] | undefined'.
Type 'Rule<Theme>[]' is not assignable to type'Rule<{}>[]'.
Type 'Rule<Theme>' is not assignable to type'Rule<{}>'.
Type '[RegExp, DynamicMatcher<Theme>]' is not assignable to type'Rule<{}>'.
Type '[RegExp, DynamicMatcher<Theme>]' is not assignable to type'[string, CSSObject | CSSEntries]'.
Type at position 0 insource is not compatible with type at position 0 in target.
Type 'RegExp' is not assignable to type'string'.
presetUno(),
My main.tsx is like this.
/** @jsx h */importblogfrom"https://deno.land/x/[email protected]/blog.tsx";importpresetUnofrom'https://esm.sh/@unocss/[email protected]'blog({
...,unocss: {presets: [presetUno(),],},});
The text was updated successfully, but these errors were encountered:
presetUno()
will result in a type error, but it does not appear from the README that any options are required.Am I using it wrong?
My
main.tsx
is like this.The text was updated successfully, but these errors were encountered: