Skip to content

Commit 1860d59

Browse files
committed
fix: resolve "Argument of type 'string | undefined' is not assignable to parameter of type 'string'" warning
1 parent e526efd commit 1860d59

File tree

44 files changed

+131
-134
lines changed

Some content is hidden

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

44 files changed

+131
-134
lines changed

packages/coreui-vue/src/components/accordion/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { CAccordionItem } from './CAccordionItem'
77

88
const CAccordionPlugin = {
99
install: (app: App): void => {
10-
app.component(CAccordion.name, CAccordion)
11-
app.component(CAccordionBody.name, CAccordionBody)
12-
app.component(CAccordionButton.name, CAccordionButton)
13-
app.component(CAccordionHeader.name, CAccordionHeader)
14-
app.component(CAccordionItem.name, CAccordionItem)
10+
app.component(CAccordion.name as string, CAccordion)
11+
app.component(CAccordionBody.name as string, CAccordionBody)
12+
app.component(CAccordionButton.name as string, CAccordionButton)
13+
app.component(CAccordionHeader.name as string, CAccordionHeader)
14+
app.component(CAccordionItem.name as string, CAccordionItem)
1515
},
1616
}
1717

packages/coreui-vue/src/components/alert/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { CAlertLink } from './CAlertLink'
55

66
const CAlertPlugin = {
77
install: (app: App): void => {
8-
app.component(CAlert.name, CAlert)
9-
app.component(CAlertHeading.name, CAlertHeading)
10-
app.component(CAlertLink.name, CAlertLink)
8+
app.component(CAlert.name as string, CAlert)
9+
app.component(CAlertHeading.name as string, CAlertHeading)
10+
app.component(CAlertLink.name as string, CAlertLink)
1111
},
1212
}
1313

packages/coreui-vue/src/components/avatar/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CAvatar } from './CAvatar'
33

44
const CAvatarPlugin = {
55
install: (app: App): void => {
6-
app.component(CAvatar.name, CAvatar)
6+
app.component(CAvatar.name as string, CAvatar)
77
},
88
}
99

packages/coreui-vue/src/components/backdrop/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CBackdrop } from './CBackdrop'
33

44
const CBackdropPlugin = {
55
install: (app: App): void => {
6-
app.component(CBackdrop.name, CBackdrop)
6+
app.component(CBackdrop.name as string, CBackdrop)
77
},
88
}
99

packages/coreui-vue/src/components/badge/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CBadge } from './CBadge'
33

44
const CBadgePlugin = {
55
install: (app: App): void => {
6-
app.component(CBadge.name, CBadge)
6+
app.component(CBadge.name as string, CBadge)
77
},
88
}
99

packages/coreui-vue/src/components/breadcrumb/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { CBreadcrumb } from './CBreadcrumb'
44

55
const CBreadcrumbPlugin = {
66
install: (app: App): void => {
7-
app.component(CBreadcrumb.name, CBreadcrumb)
8-
app.component(CBreadcrumbItem.name, CBreadcrumbItem)
7+
app.component(CBreadcrumb.name as string, CBreadcrumb)
8+
app.component(CBreadcrumbItem.name as string, CBreadcrumbItem)
99
},
1010
}
1111

packages/coreui-vue/src/components/button-group/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { CButtonGroup } from './CButtonGroup'
44

55
const CButtonGroupPlugin = {
66
install: (app: App): void => {
7-
app.component(CButtonToolbar.name, CButtonToolbar)
8-
app.component(CButtonGroup.name, CButtonGroup)
7+
app.component(CButtonToolbar.name as string, CButtonToolbar)
8+
app.component(CButtonGroup.name as string, CButtonGroup)
99
},
1010
}
1111

packages/coreui-vue/src/components/button/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CButton } from './CButton'
33

44
const CButtonPlugin = {
55
install: (app: App): void => {
6-
app.component(CButton.name, CButton)
6+
app.component(CButton.name as string, CButton)
77
},
88
}
99

packages/coreui-vue/src/components/callout/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CCallout } from './CCallout'
33

44
const CCalloutPlugin = {
55
install: (app: App): void => {
6-
app.component(CCallout.name, CCallout)
6+
app.component(CCallout.name as string, CCallout)
77
},
88
}
99

packages/coreui-vue/src/components/card/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ import { CCardTitle } from './CCardTitle'
1313

1414
const CCardPlugin = {
1515
install: (app: App): void => {
16-
app.component(CCard.name, CCard)
17-
app.component(CCardBody.name, CCardBody)
18-
app.component(CCardFooter.name, CCardFooter)
19-
app.component(CCardGroup.name, CCardGroup)
20-
app.component(CCardHeader.name, CCardHeader)
21-
app.component(CCardImage.name, CCardImage)
22-
app.component(CCardImageOverlay.name, CCardImageOverlay)
23-
app.component(CCardLink.name, CCardLink)
24-
app.component(CCardSubtitle.name, CCardSubtitle)
25-
app.component(CCardText.name, CCardText)
26-
app.component(CCardTitle.name, CCardTitle)
16+
app.component(CCard.name as string, CCard)
17+
app.component(CCardBody.name as string, CCardBody)
18+
app.component(CCardFooter.name as string, CCardFooter)
19+
app.component(CCardGroup.name as string, CCardGroup)
20+
app.component(CCardHeader.name as string, CCardHeader)
21+
app.component(CCardImage.name as string, CCardImage)
22+
app.component(CCardImageOverlay.name as string, CCardImageOverlay)
23+
app.component(CCardLink.name as string, CCardLink)
24+
app.component(CCardSubtitle.name as string, CCardSubtitle)
25+
app.component(CCardText.name as string, CCardText)
26+
app.component(CCardTitle.name as string, CCardTitle)
2727
},
2828
}
2929

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy