mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
corrected type information for react-joyride
This commit is contained in:
Vendored
+1
-1
@@ -156,7 +156,7 @@ export interface Props {
|
||||
export interface Step {
|
||||
title?: string;
|
||||
text?: React.ReactNode;
|
||||
selector: string;
|
||||
target: string;
|
||||
position?: "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "right" | "left";
|
||||
type?: "click" | "hover";
|
||||
isFixed?: boolean;
|
||||
|
||||
@@ -7,7 +7,7 @@ class NewComponent extends React.Component<undefined, undefined> {
|
||||
steps: Step[] = [{
|
||||
title: "Title",
|
||||
text: "Hurray",
|
||||
selector: ".selectable",
|
||||
target: ".selectable",
|
||||
position: "top-right",
|
||||
type: "click",
|
||||
style: {
|
||||
@@ -37,7 +37,7 @@ class NewComponent extends React.Component<undefined, undefined> {
|
||||
parent: "MyParent"
|
||||
},
|
||||
{
|
||||
selector: ".other-selectable",
|
||||
target: ".other-selectable",
|
||||
text: (<div>Also works</div>)
|
||||
}];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user