We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f56a7f commit e6d5043Copy full SHA for e6d5043
README.md
@@ -58,7 +58,6 @@ function narrowLiterals(array) {return array;}
58
*/
59
function typeOfExpression<T>(fn: (_?: any) => T): T;
60
function typeOfExpression() {};
61
-```
62
63
/*
64
* Copied from http://ideasintosoftware.com/typescript-advanced-tricks/
@@ -69,3 +68,4 @@ function typeOfExpression() {};
69
68
type Diff<T extends string, U extends string> = ({[P in T]: P } & {[P in U]: never } & { [x: string]: never })[T];
70
type Omit<T, K extends keyof T> = {[P in Diff<keyof T, K>]: T[P]};
71
type OmitInterface<T, U> = Omit<T, keyof U>;
+```
0 commit comments