forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Merge PR DefinitelyTyped#58077 Add Guide to @wordpress/components by …
…@sirbrillig * Add Guide to wordpress/components * Run Prettier * Add detailed deprecation message for children in Guide Co-authored-by: martin-badin <[email protected]> Co-authored-by: martin-badin <[email protected]>
- Loading branch information
1 parent
e8327ff
commit 4011d2a
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { ComponentType, ReactNode } from 'react'; | ||
|
||
interface GuidePage { | ||
content: ReactNode; | ||
image?: ReactNode; | ||
} | ||
|
||
interface GuideProps { | ||
className?: string; | ||
contentLabel?: string; | ||
finishButtonText?: ReactNode; | ||
onFinish?: () => void; | ||
pages?: GuidePage[]; | ||
|
||
/** | ||
* @deprecated use the `pages` prop instead | ||
* @since 5.5 | ||
*/ | ||
children?: ReactNode; | ||
} | ||
|
||
declare const Guide: ComponentType<GuideProps>; | ||
export default Guide; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters