Skip to content

Commit

Permalink
fix(meta): slots typescript definition when no prarms
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Mar 18, 2024
1 parent 543f5d6 commit 691037d
Show file tree
Hide file tree
Showing 7 changed files with 1,460 additions and 1,197 deletions.
4 changes: 2 additions & 2 deletions components/form/BaseAutocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ defineSlots<{
removeItem: (item: T) => void
}): any
'icon'(props: { iconName: string }): any
'clear-icon'(): any
'dropdown-icon'(): any
'clear-icon'(props: Record<string, never>): any
'dropdown-icon'(props: Record<string, never>): any
}>()
const [modelValue, modelModifiers] = defineModel<T | T[], 'prop'>({
Expand Down
2 changes: 1 addition & 1 deletion components/form/BaseAutocompleteItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const props = withDefaults(
)
defineSlots<{
'selected-icon'(): any
'selected-icon'(props: Record<string, never>): any
}>()
const rounded = useNuiDefaultProperty(props, 'BaseAutocompleteItem', 'rounded')
Expand Down
2 changes: 1 addition & 1 deletion components/form/BaseCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const props = withDefaults(
)
defineSlots<{
default(): any
default(props: Record<string, never>): any
}>()
const [modelValue] = defineModel<T | T[]>()
Expand Down
4 changes: 2 additions & 2 deletions components/form/BaseListbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ const [modelValue, modelModifiers] = defineModel<T | T[], 'prop'>({
})
defineSlots<{
label(): any
icon(): any
label(props: Record<string, never>): any
icon(props: Record<string, never>): any
'listbox-button'(props: { value: T | T[] | undefined; open: boolean }): any
'listbox-item'(props: {
item: T | T[] | undefined
Expand Down
2 changes: 1 addition & 1 deletion components/form/BaseRadio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const props = withDefaults(
const [modelValue] = defineModel<T>()
defineSlots<{
default(): any
default(props: Record<string, never>): any
}>()
const color = useNuiDefaultProperty(props, 'BaseRadio', 'color')
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,31 +60,31 @@
"@nuxtjs/tailwindcss": "^6.11.0",
"@shuriken-ui/tailwind": "^3.0.0",
"@vueuse/nuxt": "^10.7.2",
"autoprefixer": "^10.4.17",
"nuxt-icon": "^0.6.8"
"autoprefixer": "^10.4.18",
"nuxt-icon": "^0.6.9"
},
"devDependencies": {
"@commitlint/cli": "^18.5.0",
"@commitlint/config-conventional": "^18.5.0",
"@commitlint/cli": "^19.2.0",
"@commitlint/config-conventional": "^19.1.0",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@types/node": "20.11.6",
"commitlint": "^18.5.0",
"eslint": "8.56.0",
"@types/node": "20.11.28",
"commitlint": "^19.2.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier-vue": "5.0.0",
"eslint-plugin-tailwindcss": "3.14.0",
"eslint-plugin-unicorn": "^50.0.1",
"eslint-plugin-tailwindcss": "3.15.1",
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-vuejs-accessibility": "2.2.1",
"jiti": "^1.21.0",
"lint-staged": "^15.2.0",
"npm-run-all": "^4.1.5",
"nuxt": "^3.9.3",
"nuxt": "^3.11.0",
"nuxt-component-meta": "^0.6.3",
"simple-git-hooks": "^2.9.0",
"simple-git-hooks": "^2.11.0",
"standard-version": "^9.5.0",
"typescript": "^5.3.3",
"typescript": "^5.4.2",
"unplugin-fonts": "^1.1.1",
"vue-tsc": "^1.8.27"
"vue-tsc": "^2.0.6"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",
Expand Down
Loading

0 comments on commit 691037d

Please sign in to comment.