Skip to content

Commit b8f0677

Browse files
committed
chore: type strict
1 parent efc2597 commit b8f0677

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/Common/Types.ts

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export interface CheckboxProps {
123123
export type TippyWithBaseDocLinkTypes<T extends boolean> = {
124124
isExternalLink?: T
125125
isEnterprise?: boolean
126-
documentationLink: T extends true ? string : keyof typeof DOCUMENTATION
126+
documentationLink?: T extends true ? string : keyof typeof DOCUMENTATION
127127
}
128128

129129
export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo'> &
@@ -158,21 +158,19 @@ export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo
158158
}
159159

160160
export interface InfoIconTippyProps<T extends boolean = false>
161-
extends Partial<
162-
Pick<
163-
TippyCustomizedProps<T>,
164-
| 'heading'
165-
| 'infoText'
166-
| 'iconClass'
167-
| 'documentationLinkText'
168-
| 'additionalContent'
169-
| 'placement'
170-
| 'Icon'
171-
| 'headingInfo'
172-
| 'documentationLink'
173-
| 'isEnterprise'
174-
| 'isExternalLink'
175-
>
161+
extends Pick<
162+
TippyCustomizedProps<T>,
163+
| 'heading'
164+
| 'infoText'
165+
| 'iconClass'
166+
| 'documentationLinkText'
167+
| 'additionalContent'
168+
| 'placement'
169+
| 'Icon'
170+
| 'headingInfo'
171+
| 'documentationLink'
172+
| 'isEnterprise'
173+
| 'isExternalLink'
176174
> {
177175
dataTestid?: string
178176
children?: TippyCustomizedProps<T>['children']

0 commit comments

Comments
 (0)