Closed kfatehi closed 7 years ago
Similar to React's setState, the patch function should allow a partial object of a given type, but no extraneous keys thereafter.
setState
patch
Resource: https://github.com/developit/preact/blob/f7834ec9fb7848581c6fbc7833bcbe2f2db9fe61/src/preact.d.ts#L61
Similar to React's
setState
, thepatch
function should allow a partial object of a given type, but no extraneous keys thereafter.Resource: https://github.com/developit/preact/blob/f7834ec9fb7848581c6fbc7833bcbe2f2db9fe61/src/preact.d.ts#L61