Skip to content

Commit e243fa4

Browse files
authoredDec 10, 2023
fix(typings): update types to support ref (#4447)
1 parent 49ef16a commit e243fa4

File tree

175 files changed

+484
-419
lines changed

Some content is hidden

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

175 files changed

+484
-419
lines changed
 

‎index.d.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ export {
5252
StrictBreadcrumbSectionProps,
5353
} from './dist/commonjs/collections/Breadcrumb/BreadcrumbSection'
5454

55-
export {
56-
default as Form,
57-
FormComponent,
58-
FormProps,
59-
StrictFormProps,
60-
} from './dist/commonjs/collections/Form'
55+
export { default as Form, FormProps, StrictFormProps } from './dist/commonjs/collections/Form'
6156
export {
6257
default as FormButton,
6358
FormButtonProps,

‎src/addons/Confirm/Confirm.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
22

3-
import { SemanticShorthandItem } from '../../generic'
3+
import { ForwardRefComponent, SemanticShorthandItem } from '../../generic'
44
import { ButtonProps } from '../../elements/Button'
55
import { StrictModalProps } from '../../modules/Modal'
66
import { ModalContentProps } from '../../modules/Modal/ModalContent'
@@ -42,10 +42,10 @@ export interface StrictConfirmProps extends StrictModalProps {
4242
/** Whether or not the modal is visible. */
4343
open?: boolean
4444

45-
/** A confirm can vary in size. */
45+
/** A Confirm can vary in size. */
4646
size?: 'mini' | 'tiny' | 'small' | 'large' | 'fullscreen'
4747
}
4848

49-
declare const Confirm: React.ComponentClass<ConfirmProps>
49+
declare const Confirm: ForwardRefComponent<ConfirmProps, HTMLDivElement>
5050

5151
export default Confirm

0 commit comments

Comments
 (0)
Please sign in to comment.