Fix Simplify to actually expand type-hints (#553)

This commit is contained in:
hiroki osame 2023-02-07 01:08:24 -05:00 committed by GitHub
parent 6f8538c843
commit aaef3e30ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,4 +55,4 @@ fn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface`
@category Object
*/
export type Simplify<T> = {[KeyType in keyof T]: T[KeyType]};
export type Simplify<T> = {[KeyType in keyof T]: T[KeyType]} & {};