Skip to content

Commit

Permalink
Flow: codeshift some Object types
Browse files Browse the repository at this point in the history
kiwicom-source-id: 17441e926a4c8da8296737f2067713d753f332f1
  • Loading branch information
Martin Zlámal authored and kiwicom-github-bot committed Jun 7, 2019
1 parent 473926c commit 0dc9d56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/setPrototypeOf.js
Expand Up @@ -5,7 +5,10 @@
*
* @see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf#Polyfill
*/
export default function setPrototypeOf(obj: Object, prototype: Object) {
export default function setPrototypeOf(
obj: { [key: string]: any, ... },
prototype: typeof Error,
) {
if (Object.setPrototypeOf) {
return Object.setPrototypeOf(obj, prototype);
}
Expand Down

0 comments on commit 0dc9d56

Please sign in to comment.