Skip to content

Commit

Permalink
convert utils/ to typescript (reduxjs#3534)
Browse files Browse the repository at this point in the history
Former-commit-id: 01968f6
Former-commit-id: b3d2147
  • Loading branch information
cellog authored and timdorr committed Aug 29, 2019
1 parent e8e849f commit 69fc51f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/isPlainObject.js → src/utils/isPlainObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @param {any} obj The object to inspect.
* @returns {boolean} True if the argument appears to be a plain object.
*/
export default function isPlainObject(obj) {
export default function isPlainObject(obj: unknown) {
if (typeof obj !== 'object' || obj === null) return false

let proto = obj
Expand Down
2 changes: 1 addition & 1 deletion src/utils/warning.js → src/utils/warning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
if (typeof console !== 'undefined' && typeof console.error === 'function') {
console.error(message)
Expand Down

0 comments on commit 69fc51f

Please sign in to comment.