From 11b289bbc1a1259c338f1db4e959f697b8cd4088 Mon Sep 17 00:00:00 2001 From: Maddi Joyce Date: Tue, 12 Jun 2018 17:12:53 +1000 Subject: [PATCH] Revert formatting changes. --- types/redux-form/index.d.ts | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/types/redux-form/index.d.ts b/types/redux-form/index.d.ts index 668c1228d4..1a3a4f1952 100644 --- a/types/redux-form/index.d.ts +++ b/types/redux-form/index.d.ts @@ -10,8 +10,11 @@ // Maddi Joyce // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 - -import { ComponentClass, StatelessComponent, ReactElement } from "react"; +import { + ComponentClass, + StatelessComponent, + ReactElement +} from "react"; export type FieldType = "Field" | "FieldArray"; @@ -20,7 +23,7 @@ export interface ErrorOther { } export type FormErrors = { - [P in keyof FormData]?: ReactElement | string | ErrorOther + [P in keyof FormData]?: ReactElement | string | ErrorOther; }; export interface WarningOther { @@ -28,7 +31,7 @@ export interface WarningOther { } export type FormWarnings = { - [P in keyof FormData]?: ReactElement | string | WarningOther + [P in keyof FormData]?: ReactElement | string | WarningOther; }; export interface RegisteredFieldState { @@ -36,14 +39,7 @@ export interface RegisteredFieldState { type: FieldType; } -export type Omit = Pick< - T, - ({ [P in keyof T]: P } & - { [P in K]: never } & { - [x: string]: never; - [x: number]: never; - })[keyof T] ->; +export type Omit = Pick; export * from "./lib/reduxForm"; export * from "./lib/Field";