diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-05-25 01:42:48 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-05-25 01:53:13 +0800 |
commit | d057b77dc5585756f1df7fad03a415314bd9111b (patch) | |
tree | 4e5a501b5d956c07ea1ea46c6b52ee49eab454de /packages/typescript-typings/types | |
parent | 27d637195db1afca183fec86edfa0204db7f383c (diff) | |
download | dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.tar dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.tar.gz dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.tar.bz2 dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.tar.lz dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.tar.xz dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.tar.zst dexon-sol-tools-d057b77dc5585756f1df7fad03a415314bd9111b.zip |
Address PR feedback
Diffstat (limited to 'packages/typescript-typings/types')
-rw-r--r-- | packages/typescript-typings/types/react-joyride/index.d.ts | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/packages/typescript-typings/types/react-joyride/index.d.ts b/packages/typescript-typings/types/react-joyride/index.d.ts index 3aa5852f7..6c1a5b092 100644 --- a/packages/typescript-typings/types/react-joyride/index.d.ts +++ b/packages/typescript-typings/types/react-joyride/index.d.ts @@ -4,31 +4,39 @@ declare module 'react-joyride' { import * as React from 'react'; export interface StyleOptions { - arrowColor?: string, - backgroundColor?: string, - primaryColor?: string, - textColor?: string, - overlayColor?: string, - spotlightShadow?: string, - beaconSize?: number, - zIndex?: number, + arrowColor?: string; + backgroundColor?: string; + primaryColor?: string; + textColor?: string; + overlayColor?: string; + spotlightShadow?: string; + beaconSize?: number; + zIndex?: number; } - - export type Placement = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "right" | "left"; + + export type Placement = + | 'top' + | 'top-left' + | 'top-right' + | 'bottom' + | 'bottom-left' + | 'bottom-right' + | 'right' + | 'left'; export interface Step { title?: string; content: React.ReactNode; target: string; placement?: Placement; - type?: "click" | "hover"; + type?: 'click' | 'hover'; isFixed?: boolean; allowClicksThruHole?: boolean; disableBeacon?: boolean; style?: StyleOptions; [prop: string]: any; } - + interface StyleOptionsProp { options: StyleOptions; } @@ -43,19 +51,19 @@ declare module 'react-joyride' { debug?: boolean; styles?: StyleOptionsProp; } - + export interface State { - action: string, - controlled: boolean, - index: number, - lifecycle: string, - size: 0, - status: string, + action: string; + controlled: boolean; + index: number; + lifecycle: string; + size: 0; + status: string; } - + export default class Joyride extends React.Component<Props, State> { constructor(props: Props); - + static defaultProps: Props; } -}
\ No newline at end of file +} |