diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index 0c4ad0b797..948623f137 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -98,6 +98,14 @@ export interface Layout { showlegend: boolean; xaxis: Partial; yaxis: Partial; + yaxis2: Partial; + yaxis3: Partial; + yaxis4: Partial; + yaxis5: Partial; + yaxis6: Partial; + yaxis7: Partial; + yaxis8: Partial; + yaxis9: Partial; margin: Partial; height: number; width: number; @@ -138,6 +146,7 @@ export interface Axis { showgrid: boolean; fixedrange: boolean; rangemode: "tozero" | 'normal' | 'nonnegative'; + domain: number[]; type: AxisType; tickformat: string; hoverformat: string; @@ -186,7 +195,7 @@ export type ModeBarButtons = 'lasso2d' | 'select2d' | 'sendDataToCloud' | 'autoS 'hoverClosestCartesian' | 'hoverCompareCartesian' | 'zoom3d' | 'pan3d' | 'orbitRotation' | 'tableRotation' | 'resetCameraDefault3d' | 'resetCameraLastSave3d' | 'hoverClosest3d' | 'zoomInGeo' | 'zoomOutGeo' | 'resetGeo' | 'hoverClosestGeo' | 'hoverClosestGl2d' | - 'hoverClosestPie' | 'toggleHover' | 'toImage' | 'resetViews'; + 'hoverClosestPie' | 'toggleHover' | 'toImage' | 'resetViews' | 'toggleSpikelines'; // Data @@ -203,6 +212,8 @@ export interface ScatterData { x: Datum[] | Datum[][]; y: Datum[] | Datum[][]; z: Datum[] | Datum[][] | Datum[][][]; + xaxis: string; + yaxis: string; text: string | string[]; line: Partial; 'line.color': Color; diff --git a/types/react-bootstrap/index.d.ts b/types/react-bootstrap/index.d.ts index 5c55ce6910..dcb5998f7a 100644 --- a/types/react-bootstrap/index.d.ts +++ b/types/react-bootstrap/index.d.ts @@ -8,11 +8,15 @@ // Cheng Sieu Ly , // Kat Busch , // Vito Samson +// Karol Janyst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as React from 'react'; +export type Diff = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T]; +export type Omit = Pick>; + export type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'medium' | 'lg' | 'large'; export interface SelectCallback extends React.EventHandler { @@ -34,94 +38,4 @@ export interface TransitionCallbacks { onExiting?(node: HTMLElement): any; } -export { - Accordion, - Alert, - Badge, - Breadcrumb, - BreadcrumbItem, - Button, - ButtonGroup, - ButtonToolbar, - Carousel, - CarouselCaption, - CarouselItem, - Checkbox, - Clearfix, - Col, - Collapse, - ControlLabel, - Dropdown, - DropdownButton, - DropdownMenu, - DropdownToggle, - Fade, - Form, - FormControl, - FormControlFeedback, - FormControlStatic, - FormGroup, - Glyphicon, - Grid, - HelpBlock, - Image, - InputGroup, - InputGroupAddon, - InputGroupButton, - Jumbotron, - Label, - ListGroup, - ListGroupItem, - Media, - MediaBody, - MediaHeading, - MediaLeft, - MediaList, - MediaListItem, - MediaRight, - MenuItem, - Modal, - ModalBody, - ModalDialog, - ModalFooter, - ModalHeader, - ModalTitle, - Nav, - Navbar, - NavbarBrand, - NavbarCollapse, - NavbarHeader, - NavbarToggle, - NavDropdown, - NavItem, - Overlay, - OverlayTrigger, - PageHeader, - PageItem, - Pager, - PagerItem, - Pagination, - PaginationButton, - Panel, - PanelGroup, - Popover, - ProgressBar, - Radio, - ResponsiveEmbed, - Row, - SafeAnchor, - SplitButton, - SplitToggle, - Tab, - TabContainer, - TabContent, - Table, - TabPane, - Tabs, - Thumbnail, - ToggleButton, - ToggleButtonGroup, - Tooltip, - Well, - utils, -} from './lib'; +export * from './lib'; diff --git a/types/react-bootstrap/lib/Accordion.d.ts b/types/react-bootstrap/lib/Accordion.d.ts index a438514645..28b15ab1de 100644 --- a/types/react-bootstrap/lib/Accordion.d.ts +++ b/types/react-bootstrap/lib/Accordion.d.ts @@ -1,17 +1,19 @@ import * as React from 'react'; import { Sizes } from 'react-bootstrap'; -declare class Accordion extends React.Component { } -declare namespace Accordion { } +declare namespace Accordion { + export interface AccordionProps extends React.HTMLProps { + bsSize?: Sizes; + bsStyle?: string; + collapsible?: boolean; + defaultExpanded?: boolean; + eventKey?: any; + expanded?: boolean; + footer?: React.ReactNode; + header?: React.ReactNode; + } +} +declare class Accordion extends React.Component { } export = Accordion; -interface AccordionProps extends React.HTMLProps { - bsSize?: Sizes; - bsStyle?: string; - collapsible?: boolean; - defaultExpanded?: boolean; - eventKey?: any; - expanded?: boolean; - footer?: any; // TODO: Add more specific type - header?: any; // TODO: Add more specific type -} + diff --git a/types/react-bootstrap/lib/Alert.d.ts b/types/react-bootstrap/lib/Alert.d.ts index 538984daa5..913619101f 100644 --- a/types/react-bootstrap/lib/Alert.d.ts +++ b/types/react-bootstrap/lib/Alert.d.ts @@ -1,14 +1,15 @@ import * as React from 'react'; import { Sizes } from 'react-bootstrap'; -declare class Alert extends React.Component { } -declare namespace Alert { } -export = Alert - -interface AlertProps extends React.HTMLProps { - bsSize?: Sizes; - bsStyle?: string; - closeLabel?: string; - /** @deprecated since v0.29.0 */ dismissAfter?: number; - onDismiss?: Function; +declare namespace Alert { + export interface AlertProps extends React.HTMLProps { + bsSize?: Sizes; + bsStyle?: string; + closeLabel?: string; + /** @deprecated since v0.29.0 */dismissAfter?: number; + // TODO: Add more specific type + onDismiss?: Function; + } } +declare class Alert extends React.Component { } +export = Alert; diff --git a/types/react-bootstrap/lib/Badge.d.ts b/types/react-bootstrap/lib/Badge.d.ts index 174cebacbd..bcac7dfa17 100644 --- a/types/react-bootstrap/lib/Badge.d.ts +++ b/types/react-bootstrap/lib/Badge.d.ts @@ -1,10 +1,10 @@ import * as React from 'react'; -declare class Badge extends React.Component { } -declare namespace Badge { } -export = Badge - -interface BadgeProps extends React.HTMLProps { - bsClass?: string; - pullRight?: boolean; +declare namespace Badge { + export interface BadgeProps extends React.HTMLProps { + bsClass?: string; + pullRight?: boolean; + } } +declare class Badge extends React.Component { } +export = Badge; diff --git a/types/react-bootstrap/lib/Breadcrumb.d.ts b/types/react-bootstrap/lib/Breadcrumb.d.ts index 2f5d895172..3bff967487 100644 --- a/types/react-bootstrap/lib/Breadcrumb.d.ts +++ b/types/react-bootstrap/lib/Breadcrumb.d.ts @@ -1,12 +1,12 @@ import * as React from 'react'; import * as BreadcrumbItem from './BreadcrumbItem'; -declare class Breadcrumb extends React.Component { - public static Item: typeof BreadcrumbItem; +declare namespace Breadcrumb { + interface BreadcrumbProps extends React.HTMLProps { + bsClass?: string; + } } -declare namespace Breadcrumb { } -export = Breadcrumb - -interface BreadcrumbProps extends React.HTMLProps { - bsClass?: string; +declare class Breadcrumb extends React.Component { + public static Item: typeof BreadcrumbItem; } +export = Breadcrumb; diff --git a/types/react-bootstrap/lib/BreadcrumbItem.d.ts b/types/react-bootstrap/lib/BreadcrumbItem.d.ts index 2e64aac615..b4b0f741a3 100644 --- a/types/react-bootstrap/lib/BreadcrumbItem.d.ts +++ b/types/react-bootstrap/lib/BreadcrumbItem.d.ts @@ -1,12 +1,12 @@ import * as React from 'react'; -declare class BreadcrumbItem extends React.Component { } -declare namespace BreadcrumbItem { } -export = BreadcrumbItem - -interface BreadcrumbItemProps extends React.Props { - active?: boolean; - href?: string; - title?: React.ReactNode; - target?: string; +declare namespace BreadcrumbItem { + export interface BreadcrumbItemProps extends React.Props { + active?: boolean; + href?: string; + title?: React.ReactNode; + target?: string; + } } +declare class BreadcrumbItem extends React.Component { } +export = BreadcrumbItem; diff --git a/types/react-bootstrap/lib/Button.d.ts b/types/react-bootstrap/lib/Button.d.ts index 1c5504dbe6..367eea78cc 100644 --- a/types/react-bootstrap/lib/Button.d.ts +++ b/types/react-bootstrap/lib/Button.d.ts @@ -1,16 +1,16 @@ import * as React from 'react'; import { Sizes } from 'react-bootstrap'; -declare class Button extends React.Component { } -declare namespace Button { } -export = Button - -interface ButtonProps extends React.HTMLProps