Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 2b54859

Browse files
Merge pull request #155 from chakra-ui/wip/fix-types-tsx
WIP: Resolve types
2 parents 3453ed4 + fe54713 commit 2b54859

File tree

134 files changed

+1894
-6855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+1894
-6855
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ jobs:
6969
commit: "chore(release): version packages"
7070
env:
7171
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
72-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

_templates/generator/component/tsconfig.json.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ to: packages/<%=h.changeCase.paramCase(name)%>/tsconfig.json
44

55
{
66
"extends": "../../tsconfig.json",
7-
"include": ["src"]
7+
"include": ["src", "./index.tsx", "./index.ts"]
88
}

_templates/generator/module/tsconfig.json.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ to: packages/<%=h.changeCase.paramCase(name)%>/tsconfig.json
44

55
{
66
"extends": "../../tsconfig.json",
7-
"include": ["src"]
7+
"include": ["src", "./index.tsx", "./index.ts"]
88
}

_templates/generator/tooling/tsconfig.json.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ to: tooling/<%=h.changeCase.paramCase(name)%>/tsconfig.json
44

55
{
66
"extends": "../../tsconfig.json",
7-
"include": ["src"]
7+
"include": ["src", "./index.tsx", "./index.ts"]
88
}

components.d.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,30 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2022-07-16T15:27:15.568Z
9+
* This file was generated on 2022-08-31T15:33:17.883Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"
13-
import { VNodeChild, HTMLAttributes } from "vue"
13+
import { VNodeChild, VNode, HTMLAttributes } from "vue"
1414

1515
export type JsxNode = VNodeChild | JSX.Element
1616

17+
declare global {
18+
namespace h.JSX {
19+
interface Element extends VNode {}
20+
interface ElementClass {
21+
$props: {}
22+
}
23+
interface ElementAttributesProperty {
24+
$props: {}
25+
}
26+
27+
interface IntrinsicAttributes
28+
extends Omit<HTMLAttributes, "color">,
29+
ChakraProps {}
30+
}
31+
}
32+
1733
type EventHandler = (...args: any[]) => void
1834

1935
export interface SlotDirective {
@@ -46,7 +62,6 @@ declare module "@vue/runtime-core" {
4662
/* Global component types for Volar auto-complete */
4763
export interface GlobalComponents {
4864
chakra: typeof import("@chakra-ui/vue-next")["chakra"]
49-
5065
CAccordion: typeof import("@chakra-ui/vue-next")["CAccordion"]
5166
CAccordionButton: typeof import("@chakra-ui/vue-next")["CAccordionButton"]
5267
CAccordionIcon: typeof import("@chakra-ui/vue-next")["CAccordionIcon"]

docs/.vitepress/__theme/index.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/.vitepress/config.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

docs/components/alert.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/components/badge.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

docs/components/breadcrumb.md

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)