Skip to content

Commit

Permalink
common typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YSMJ1994 committed Dec 17, 2019
1 parent 608e6ec commit 8a2d5d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ declare global {
export default markdown;
}

type RC<P, S = {}> = FC<P> | ComponentClass<P, S>;
type RC<P = {}, S = {}> = FC<P> | ComponentClass<P, S>;

type Merge<T extends {}, P extends {}> = { [K in Exclude<keyof T, keyof P>]: T[K] } & { [K in keyof P]: P[K] };
type Merge<T extends {}, P extends {}> = Omit<T, keyof P> & P;

type PartialPart<T extends {}, P extends keyof T> = Merge<T, Partial<Pick<T, P>>>;

Expand Down

0 comments on commit 8a2d5d7

Please sign in to comment.