From cb9c454213520c636c594e99b043647e7d01ac8a Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sun, 11 Jun 2017 10:50:12 +0200 Subject: [PATCH] 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 --- types/react-color/index.d.ts | 2 +- types/react-color/lib/components/github/Github.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-color/index.d.ts b/types/react-color/index.d.ts index 798f44d6eb..579ec8e73a 100644 --- a/types/react-color/index.d.ts +++ b/types/react-color/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-color 2.11 // Project: https://github.com/casesandberg/react-color/ -// Definitions by: Karol Janyst +// Definitions by: Karol Janyst , Marks Polakovs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/react-color/lib/components/github/Github.d.ts b/types/react-color/lib/components/github/Github.d.ts index fd1479abad..05df2f01a9 100644 --- a/types/react-color/lib/components/github/Github.d.ts +++ b/types/react-color/lib/components/github/Github.d.ts @@ -4,6 +4,7 @@ import { ColorPickerProps } from "react-color"; export interface GithubPickerProps extends ColorPickerProps { colors?: string[]; width?: string; + triangle?: 'hide' | 'top-left' | 'top-right'; } export default class GithubPicker extends Component {}