Type ‘{}’ is not assignable to type ‘Record’

In my case generic parameter was string and it’s okay to assign empty object to Record<string, unknown>.
Reason why it is not accepting {} is that Key parameter could be concrete string union type like 'prop1' | 'prop2'. In this case user is forced to add these properties to the object

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)