Skip to content

Commit 7a520fc

Browse files
authored
Merge pull request #419 from kwiksilver3441/setup
Convert old Array<string> to unknown
2 parents 9199a14 + dc6b7a6 commit 7a520fc

File tree

15 files changed

+24
-24
lines changed

15 files changed

+24
-24
lines changed

src/components/BCard/BCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ interface BCardProps {
5353
align?: Alignment
5454
bgVariant?: ColorVariant
5555
bodyBgVariant?: ColorVariant
56-
bodyClass?: Array<string> | Record<string, unknown> | string // TODO record<string, unknown> can be replaced as a known object
56+
bodyClass?: Array<unknown> | Record<string, unknown> | string // TODO record<string, unknown> can be replaced as a known object
5757
bodyTag?: string // Above todo, also Array can be explicit
5858
bodyTextVariant?: ColorVariant
5959
borderVariant?: ColorVariant
6060
footer?: string
6161
footerBgVariant?: ColorVariant
6262
footerBorderVariant?: ColorVariant
63-
footerClass?: Array<string> | Record<string, unknown> | string
63+
footerClass?: Array<unknown> | Record<string, unknown> | string
6464
footerHtml?: string
6565
footerTag?: string
6666
footerTextVariant?: ColorVariant
6767
header?: string
6868
headerBgVariant?: ColorVariant
6969
headerBorderVariant?: ColorVariant
70-
headerClass?: Array<string> | Record<string, unknown> | string
70+
headerClass?: Array<unknown> | Record<string, unknown> | string
7171
headerHtml?: string
7272
headerTag?: string
7373
headerTextVariant?: ColorVariant

src/components/BCard/BCardBody.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import type {ColorVariant, TextColorVariant} from '@/types'
2020
2121
interface BCardBodyProps {
2222
bodyBgVariant?: ColorVariant
23-
bodyClass?: Array<string> | Record<string, unknown> | string
23+
bodyClass?: Array<unknown> | Record<string, unknown> | string
2424
bodyTag?: string
2525
bodyTextVariant?: TextColorVariant
2626
overlay?: boolean

src/components/BCard/BCardFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface BCardFooterProps {
1717
footer: string
1818
footerBgVariant?: ColorVariant
1919
footerBorderVariant?: ColorVariant
20-
footerClass?: Array<string> | Record<string, unknown> | string
20+
footerClass?: Array<unknown> | Record<string, unknown> | string
2121
footerHtml?: string
2222
footerTag?: string
2323
footerTextVariant?: TextColorVariant

src/components/BCard/BCardHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface BCardHeaderProps {
1717
header?: string
1818
headerBgVariant?: ColorVariant
1919
headerBorderVariant?: ColorVariant
20-
headerClass?: Array<string> | Record<string, unknown> | string
20+
headerClass?: Array<unknown> | Record<string, unknown> | string
2121
headerHtml?: string
2222
headerTag?: string
2323
headerTextVariant?: ColorVariant

src/components/BDropdown/BDropdown.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ import useEventListener from '@/composables/useEventListener'
5353
// So some of them could be converted to their pure types similar to Popper.Boundary
5454
interface BDropdownProps {
5555
id: string
56-
menuClass: Array<string> | Record<string, unknown> | string
56+
menuClass: Array<unknown> | Record<string, unknown> | string
5757
size: Size
58-
splitClass: Array<string> | Record<string, unknown> | string
58+
splitClass: Array<unknown> | Record<string, unknown> | string
5959
splitVariant: ButtonVariant
6060
text: string
61-
toggleClass: Array<string> | Record<string, unknown> | string
61+
toggleClass: Array<unknown> | Record<string, unknown> | string
6262
autoClose?: boolean | 'inside' | 'outside'
6363
block?: boolean
6464
boundary?: Popper.Boundary

src/components/BDropdown/BDropdownGroup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface BDropdownGroupProps {
3232
id: string
3333
ariaDescribedby: string
3434
header: string
35-
headerClasses?: string | Array<string> | Record<string, unknown>
35+
headerClasses?: string | Array<unknown> | Record<string, unknown>
3636
headerTag?: string
3737
headerVariant?: ColorVariant
3838
}

src/components/BDropdown/BDropdownItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {computed, defineComponent, useAttrs} from 'vue'
1919
2020
interface BDropdownItemProps {
2121
href: string
22-
linkClass: Array<string> | Record<string, unknown> | string
22+
linkClass: Array<unknown> | Record<string, unknown> | string
2323
active?: boolean
2424
disabled?: boolean
2525
rel?: string

src/components/BDropdown/BDropdownItemButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {ButtonType, ColorVariant} from '@/types'
1212
import {computed, defineComponent} from 'vue'
1313
1414
interface BDropdownItemButtonProps {
15-
buttonClass: string | Array<string> | Record<string, unknown>
15+
buttonClass: string | Array<unknown> | Record<string, unknown>
1616
active?: boolean
1717
activeClass?: string
1818
disabled?: boolean

src/types/components/BCard/BCard.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ export interface Props {
44
align?: Alignment
55
bgVariant?: ColorVariant
66
bodyBgVariant?: ColorVariant
7-
bodyClass?: Array<string> | Record<string, unknown> | string // TODO record<string, unknown> can be replaced as a known object
7+
bodyClass?: Array<unknown> | Record<string, unknown> | string // TODO record<string, unknown> can be replaced as a known object
88
bodyTag?: string // Above todo, also Array can be explicit
99
bodyTextVariant?: ColorVariant
1010
borderVariant?: ColorVariant
1111
footer?: string
1212
footerBgVariant?: ColorVariant
1313
footerBorderVariant?: ColorVariant
14-
footerClass?: Array<string> | Record<string, unknown> | string
14+
footerClass?: Array<unknown> | Record<string, unknown> | string
1515
footerHtml?: string
1616
footerTag?: string
1717
footerTextVariant?: ColorVariant
1818
header?: string
1919
headerBgVariant?: ColorVariant
2020
headerBorderVariant?: ColorVariant
21-
headerClass?: Array<string> | Record<string, unknown> | string
21+
headerClass?: Array<unknown> | Record<string, unknown> | string
2222
headerHtml?: string
2323
headerTag?: string
2424
headerTextVariant?: ColorVariant

src/types/components/BCard/BCardBody.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type {ColorVariant, TextColorVariant} from '@/types'
22
// Props
33
export interface Props {
44
bodyBgVariant?: ColorVariant
5-
bodyClass?: Array<string> | Record<string, unknown> | string
5+
bodyClass?: Array<unknown> | Record<string, unknown> | string
66
bodyTag?: string
77
bodyTextVariant?: TextColorVariant
88
overlay?: boolean

0 commit comments

Comments
 (0)