Skip to content

Commit

Permalink
fix: @types/react type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackman99 committed Dec 29, 2022
1 parent 5db65fa commit bdffbb3
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-islands-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@casual-ui/vue": patch
---

fix type error
2 changes: 0 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"extends": "@casual-ui/eslint-config-vue",


"overrides": [
{
"files": "*.vue",
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"devDependencies": {
"@casual-ui/eslint-config-vue": "^0.0.5",
"@changesets/cli": "^2.25.2",
"eslint": "^8.27.0",
"typedoc": "^0.22.15"
"eslint": "^8.27.0"
},
"scripts": {
"release": "cd packages/ui && pnpm build && cd ../.. && changeset publish"
Expand Down
1 change: 1 addition & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@vuepress/plugin-shiki": "2.0.0-beta.51",
"ali-oss-static-web-deploy": "^0.3.4",
"dayjs": "^1.11.0",
"typedoc": "^0.22.15",
"unocss": "^0.43.1",
"vue": "^3.2.31",
"vue-styleguidist": "^4.44.28",
Expand Down
2 changes: 1 addition & 1 deletion packages/types
Submodule types updated 2 files
+0 −1 package.json
+0 −8 src/index.ts
3 changes: 1 addition & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
"@types/node": "^18.11.17",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/tsconfig": "^0.1.3",
"cpy": "^9.0.1",
"sass": "^1.52.1",
"typescript": "^4.8.4",
"typescript": "^4.9.3",
"vite": "^4.0.2",
"vite-plugin-vue-auto-name": "latest",
"vue": "^3.2.31",
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/components/basic/button/CButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">
import { toRefs } from 'vue'
import type { CSize, CTheme } from '@casual-ui/types'
import { CLoading, useInjectSize, useInjectTheme, useSizeThemeClass } from '@casual-ui/vue'
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/form/date-picker/CDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ const handleClear = () => {
<template>
<div
ref="datePickerContainer"
class="c-date-picker" :class="[
class="c-date-picker"
:class="[
`c-font-${size}`,
`c-date-picker--size-${size}`,
{ 'c-date-picker--disabled': disabled },
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/shims-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}
}
8 changes: 6 additions & 2 deletions packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"target": "ESNext",
"resolveJsonModule": true,
"moduleResolution": "node",
"outDir": "dist"
"outDir": "dist",
"types": [
"vite/client"
]
},
"include": ["src"]
"include": ["src"],
"exclude": ["**/*/@casual-ui/types/**/*"]
}
3 changes: 3 additions & 0 deletions packages/vuepress-plugin-casual-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"@vuepress/client": "2.0.0-beta.51",
"markdown-it": "^13.0.1",
"vue-docgen-api": "^4.54.2"
},
"peerDependencies": {
"typedoc": "^0.22.15"
}
}

0 comments on commit bdffbb3

Please sign in to comment.