{"push_id":4197837294,"size":2,"distinct_size":1,"ref":"refs/heads/feat/toggle-runner","head":"009e2288ccfba6317819be4190125df632692e7a","before":"9ada756a90cf61ff6cb514a6bfb3f49064f825fc","commits":[{"sha":"98966d9af2320e9afdf9e3526b300fff7b1b563e","author":{"name":"Matt Oakes","email":"aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d@mattoakes.net"},"message":"fix(🐛): Fix TS typing for spring config (#119)\n\nThe user can optionally pass in a SpringConfig property to configure the stiffness, mass, and stiffness of a spring animation. Currently, they must pass in all properties if you want to change one of them, otherwise, they will get an error in TypeScript. However, as the options are spread along with default values the user should be able to pass in just the properties they would like to change from the default.\r\n\r\nThis commit changes the type signature of the SpringConfig property to accept a Partial. This allows you to change from this code:\r\n\r\n```\r\nspring({\r\n    from: dest,\r\n    to: src,\r\n    velocity,\r\n    config: {\r\n        damping: 6,\r\n        mass: 1,\r\n        stiffness: 100,\r\n        overshootClamping: false,\r\n        restSpeedThreshold: 0.01,\r\n        restDisplacementThreshold: 0.01,\r\n    }\r\n})\r\n```\r\n\r\nto this code:\r\n\r\n```\r\nspring({\r\n    from: dest,\r\n    to: src,\r\n    velocity,\r\n    config: {\r\n        stiffness: 100,\r\n    }\r\n})\r\n```\r\n\r\nThe result would already have been the same, as it's only a TypeScript error which is the issue, but it makes the code much easier to read, especially in common situations where you want to change the damping, mass, and stiffness without changing the clamping, and thresholds.","distinct":false,"url":"https://api.github.com/repos/wcandillon/react-native-redash/commits/98966d9af2320e9afdf9e3526b300fff7b1b563e"},{"sha":"009e2288ccfba6317819be4190125df632692e7a","author":{"name":"William Candillon","email":"36f6afd2670ee85b7ee755b4254ed58b58046c72@gmail.com"},"message":"Merge branch 'master' into feat/toggle-runner","distinct":true,"url":"https://api.github.com/repos/wcandillon/react-native-redash/commits/009e2288ccfba6317819be4190125df632692e7a"}]}
{"actor":{"display_login":"wcandillon"}}