@samitouri / QOS-React / commits / 3829859e22

Moved the JSdoc for invokeGuardedCallback to correct position (#9337)

Rahul Gupta committed Apr 5, 2017 at 17:04 UTC 3829859e22c9b112c00188d00e5650a272099464
1 file changed +9 -9
src/renderers/shared/utils/ReactErrorUtils.js
+9 -9
@@ -76,15 +76,6 @@ let rethrowCaughtError = function() {
76 }
77 };
78
79 -/**
80 - * Call a function while guarding against errors that happens within it.
81 - * Returns an error if it throws, otherwise null.
82 - *
83 - * @param {String} name of the guard to use for logging or debugging
84 - * @param {Function} func The function to invoke
85 - * @param {*} context The context to use when calling the function
86 - * @param {...*} args Arguments for function
87 - */
79 const ReactErrorUtils = {
80 injection: {
81 injectErrorUtils(injectedErrorUtils: Object) {
@@ -96,6 +87,15 @@ const ReactErrorUtils = {
87 },
88 },
89
90 + /**
91 + * Call a function while guarding against errors that happens within it.
92 + * Returns an error if it throws, otherwise null.
93 + *
94 + * @param {String} name of the guard to use for logging or debugging
95 + * @param {Function} func The function to invoke
96 + * @param {*} context The context to use when calling the function
97 + * @param {...*} args Arguments for function
98 + */
99 invokeGuardedCallback: function<A, B, C, D, E, F, Context>(
100 name: string | null,
101 func: (a: A, b: B, c: C, d: D, e: E, f: F) => void,