Add missing triangle prop to react-color GitHub

GithubPicker has the "triangle" prop, missing from the types. From the docs:

> triangle - String, Either hide, top-left or top-right. Default top-left
This commit is contained in:
Marks Polakovs
2017-06-11 10:50:12 +02:00
parent 718c4df8f6
commit cb9c454213
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
// Type definitions for react-color 2.11
// Project: https://github.com/casesandberg/react-color/
// Definitions by: Karol Janyst <https://github.com/LKay>
// Definitions by: Karol Janyst <https://github.com/LKay>, Marks Polakovs <https://github.com/markspolakovs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1

View File

@@ -4,6 +4,7 @@ import { ColorPickerProps } from "react-color";
export interface GithubPickerProps extends ColorPickerProps<GithubPicker> {
colors?: string[];
width?: string;
triangle?: 'hide' | 'top-left' | 'top-right';
}
export default class GithubPicker extends Component<GithubPickerProps, any> {}