mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-19 08:31:17 +08:00
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:
2
types/react-color/index.d.ts
vendored
2
types/react-color/index.d.ts
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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> {}
|
||||
|
||||
Reference in New Issue
Block a user