We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8e849f commit 69fc51fCopy full SHA for 69fc51f
src/utils/actionTypes.js renamed to src/utils/actionTypes.ts
src/utils/isPlainObject.js renamed to src/utils/isPlainObject.ts
@@ -2,7 +2,7 @@
2
* @param {any} obj The object to inspect.
3
* @returns {boolean} True if the argument appears to be a plain object.
4
*/
5
-export default function isPlainObject(obj) {
+export default function isPlainObject(obj: unknown) {
6
if (typeof obj !== 'object' || obj === null) return false
7
8
let proto = obj
src/utils/warning.js renamed to src/utils/warning.ts
@@ -4,7 +4,7 @@
* @param {String} message The warning message.
* @returns {void}
-export default function warning(message) {
+export default function warning(message: string) {
/* eslint-disable no-console */
9
if (typeof console !== 'undefined' && typeof console.error === 'function') {
10
console.error(message)
0 commit comments