Replaces the value of a key in a complex generic type param
ModelType type param
name of the key whose value will be replaced
the value to set
T = { fields: {}, identifier: "id"[] }type Modified = SetTypeSubArg<T, "identifier", "customId"[]>Modified => { fields: {}, identifier: "customId"[] } Copy
T = { fields: {}, identifier: "id"[] }type Modified = SetTypeSubArg<T, "identifier", "customId"[]>Modified => { fields: {}, identifier: "customId"[] }
Replaces the value of a key in a complex generic type param