Skip to content

Commit

Permalink
Fix typings for TSX in Vue package
Browse files Browse the repository at this point in the history
  • Loading branch information
drozdzynski committed May 28, 2024
1 parent 3c0dd2c commit bb70b5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-days-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@teiler/vue": patch
---

Fix typings for TSX
5 changes: 3 additions & 2 deletions packages/vue/src/component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { Compiler, HTMLElements, Properties, StyleDefinition, TeilerComponent } from '@teiler/core'
import { type DefineComponent } from 'vue'
import type { DefineComponent, HTMLAttributes } from 'vue'

import Styled from './Styled'

import { component, global, keyframes, styled, tags } from '@teiler/core'

type VueTeilerComponent<Target extends HTMLElements, Props> = TeilerComponent<Target, Props> & DefineComponent<{}, {}, {}, {}, {}>
type VueTeilerComponent<Target extends HTMLElements, Props> = TeilerComponent<Target, Props> & DefineComponent<Props & HTMLAttributes, {}, {}, {}, {}>

const createComponent = <Target extends HTMLElements, Props>(styleDefinition: StyleDefinition<Target, Props>): VueTeilerComponent<Target, Props> => {
const component = Styled(styleDefinition)
Expand Down

0 comments on commit bb70b5f

Please sign in to comment.