Skip to content

Commit 45c5286

Browse files
cellogtimdorr
authored andcommitted
convert utils/ to typescript (reduxjs#3534)
Former-commit-id: 01968f6 Former-commit-id: b3d2147
1 parent 2718f70 commit 45c5286

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
File renamed without changes.

src/utils/isPlainObject.js renamed to src/utils/isPlainObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @param {any} obj The object to inspect.
33
* @returns {boolean} True if the argument appears to be a plain object.
44
*/
5-
export default function isPlainObject(obj) {
5+
export default function isPlainObject(obj: unknown) {
66
if (typeof obj !== 'object' || obj === null) return false
77

88
let proto = obj

src/utils/warning.js renamed to src/utils/warning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @param {String} message The warning message.
55
* @returns {void}
66
*/
7-
export default function warning(message) {
7+
export default function warning(message: string) {
88
/* eslint-disable no-console */
99
if (typeof console !== 'undefined' && typeof console.error === 'function') {
1010
console.error(message)

0 commit comments

Comments
 (0)