Closed
Description
TypeScript Version: 3.4.0-dev.201xxxxx
Search Terms:
Code
function test<T extends { a: string, b: string }>(obj: T) {
const test: Partial<T> = { a: 'a', b: 'b' }; // TS2322 type '{ a: string, b: string }' is not assignable to type 'Partial<T>'.
}
Expected behavior:
no error
Actual behavior:
TS2322 error
Playground Link:
Related Issues:
#33524