-
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language-core): inject
as
assertion of useCssModule
into corr…
…ect location (#4952)
- Loading branch information
Showing
2 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script lang="ts" setup> | ||
import { useCssModule } from 'vue'; | ||
import { exactType } from '../../shared'; | ||
const style = useCssModule(); | ||
exactType(style, {} as Record<string, string> & { | ||
style: string; | ||
}); | ||
const foo = useCssModule('foo'); | ||
exactType(foo, {} as Record<string, string> & { | ||
foo: string; | ||
}); | ||
const bar = useCssModule('bar'); | ||
exactType(bar, {} as Record<string, string> & { | ||
bar: string; | ||
}); | ||
</script> | ||
|
||
<style module> | ||
.style { } | ||
</style> | ||
|
||
<style module="foo"> | ||
.foo { } | ||
</style> | ||
|
||
<style module="bar"> | ||
.bar { } | ||
</style> |