You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2654,13 +2654,18 @@ Conditional Types are a difficult topic to get around so here are some extra res
2654
2654
2655
2655
### Troubleshooting Handbook: Utilities
2656
2656
2657
-
These are all built in, [see source in es5.d.ts](https://github.com/microsoft/TypeScript/blob/2c458c0d1ccb96442bca9ce43aa987fb0becf8a9/src/lib/es5.d.ts#L1401-L1474):
2657
+
These are all built in, [see source in es5.d.ts](https://github.com/microsoft/TypeScript/blob/33a34e5b96bfe086266f4765ab9789a2a02507f9/src/lib/es5.d.ts#L1523-L1637):
2658
2658
2659
+
- `Awaited`: emulate the behavior of `await`
2660
+
- `Capitalize`: convert first character of string literal type to uppercase
2659
2661
- `ConstructorParameters`: a tuple of class constructor's parameter types
2660
2662
- `Exclude`: exclude a type from another type
2661
2663
- `Extract`: select a subtype that is assignable to another type
2662
2664
- `InstanceType`: the instance type you get from a `new`ing a class constructor
2665
+
- `Lowercase`: convert string literal type to lowercase
2663
2666
- `NonNullable`: exclude `null` and `undefined` from a type
2667
+
- `Omit`: construct a type with the properties of another type.
2668
+
- `OmitThisParameter`: remove the 'this' parameter from a function type.
2664
2669
- `Parameters`: a tuple of a function's parameter types
2665
2670
- `Partial`: Make all properties in an object optional
2666
2671
- `Readonly`: Make all properties in an object readonly
@@ -2669,6 +2674,10 @@ These are all built in, [see source in es5.d.ts](https://github.com/microsoft/Ty
2669
2674
- `Record`: A map from a key type to a value type
2670
2675
- `Required`: Make all properties in an object required
2671
2676
- `ReturnType`: A function's return type
2677
+
- `ThisParameterType`: extract the type of the 'this' parameter of a function type
2678
+
- `ThisType`: marker for contextual 'this' type
2679
+
- `Uncapitalize`: convert first character of string literal type to lowercase
2680
+
- `Uppercase`: convert string literal type to uppercase
These are all built in, [see source in es5.d.ts](https://github.com/microsoft/TypeScript/blob/2c458c0d1ccb96442bca9ce43aa987fb0becf8a9/src/lib/es5.d.ts#L1401-L1474):
7
+
These are all built in, [see source in es5.d.ts](https://github.com/microsoft/TypeScript/blob/33a34e5b96bfe086266f4765ab9789a2a02507f9/src/lib/es5.d.ts#L1523-L1637):
8
8
9
+
-`Awaited`: emulate the behavior of `await`
10
+
-`Capitalize`: convert first character of string literal type to uppercase
9
11
-`ConstructorParameters`: a tuple of class constructor's parameter types
10
12
-`Exclude`: exclude a type from another type
11
13
-`Extract`: select a subtype that is assignable to another type
12
14
-`InstanceType`: the instance type you get from a `new`ing a class constructor
15
+
-`Lowercase`: convert string literal type to lowercase
13
16
-`NonNullable`: exclude `null` and `undefined` from a type
17
+
-`Omit`: construct a type with the properties of another type.
18
+
-`OmitThisParameter`: remove the 'this' parameter from a function type.
14
19
-`Parameters`: a tuple of a function's parameter types
15
20
-`Partial`: Make all properties in an object optional
16
21
-`Readonly`: Make all properties in an object readonly
@@ -19,3 +24,7 @@ These are all built in, [see source in es5.d.ts](https://github.com/microsoft/Ty
19
24
-`Record`: A map from a key type to a value type
20
25
-`Required`: Make all properties in an object required
21
26
-`ReturnType`: A function's return type
27
+
-`ThisParameterType`: extract the type of the 'this' parameter of a function type
28
+
-`ThisType`: marker for contextual 'this' type
29
+
-`Uncapitalize`: convert first character of string literal type to lowercase
30
+
-`Uppercase`: convert string literal type to uppercase
0 commit comments