mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
Revert formatting changes.
This commit is contained in:
Vendored
+8
-12
@@ -10,8 +10,11 @@
|
||||
// Maddi Joyce <https://github.com/maddijoyce>
|
||||
// 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<T = void> {
|
||||
}
|
||||
|
||||
export type FormErrors<FormData = {}, T = void> = {
|
||||
[P in keyof FormData]?: ReactElement<any> | string | ErrorOther<T>
|
||||
[P in keyof FormData]?: ReactElement<any> | string | ErrorOther<T>;
|
||||
};
|
||||
|
||||
export interface WarningOther<T = void> {
|
||||
@@ -28,7 +31,7 @@ export interface WarningOther<T = void> {
|
||||
}
|
||||
|
||||
export type FormWarnings<FormData = {}, T = void> = {
|
||||
[P in keyof FormData]?: ReactElement<any> | string | WarningOther<T>
|
||||
[P in keyof FormData]?: ReactElement<any> | string | WarningOther<T>;
|
||||
};
|
||||
|
||||
export interface RegisteredFieldState {
|
||||
@@ -36,14 +39,7 @@ export interface RegisteredFieldState {
|
||||
type: FieldType;
|
||||
}
|
||||
|
||||
export type Omit<T, K extends keyof T> = Pick<
|
||||
T,
|
||||
({ [P in keyof T]: P } &
|
||||
{ [P in K]: never } & {
|
||||
[x: string]: never;
|
||||
[x: number]: never;
|
||||
})[keyof T]
|
||||
>;
|
||||
export type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;
|
||||
|
||||
export * from "./lib/reduxForm";
|
||||
export * from "./lib/Field";
|
||||
|
||||
Reference in New Issue
Block a user