unocss / unocss

The instant on-demand atomic CSS engine.
https://unocss.dev
MIT License
16.28k stars 818 forks source link

How to configure attributify mode for qwik? #3433

Open Hunnnn77 opened 9 months ago

Hunnnn77 commented 9 months ago

UnoCSS version

latest

Describe the bug

how to solve err message in vscode?

but this features works fine to astro, tsx file both

declare module 'react' { interface HTMLAttributes extends AttributifyAttributes {} } //ok

declare module 'qwik' { interface HTMLAttributes extends AttributifyAttributes {} } //nope

declare module 'qwik' { namespace JSX { interface HTMLAttributes extends AttributifyAttributes {} } } //nope

declare module '@builder.io/qwik' { interface HTMLAttributes extends AttributifyAttributes {} } //nope

declare module '@builder.io/qwik' { namespace JSX { interface HTMLAttributes extends AttributifyAttributes {} } } //nope



### Reproduction

.

### System Info

_No response_

### Validations

- [X] Read the [Contributing Guidelines](https://github.com/unocss/unocss/blob/main/CONTRIBUTING.md).
- [X] Check that there isn't [already an issue](https://github.com/unocss/unocss/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/unocss/unocss/discussions) or join our [Discord Chat Server](https://chat.antfu.me).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
stale[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

joehua87 commented 4 months ago

Hi, I can confirm that the following code works on "@builder.io/qwik-city": "^1.5.2":

import type { AttributifyAttributes } from 'unocss/preset-attributify'

declare module '@builder.io/qwik' {
    interface HTMLAttributes extends AttributifyAttributes {}
}