Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Add a few more Reactotron mocks, to shut Typescript up
Browse files Browse the repository at this point in the history
Added benchmark, close, and warn; sorted too, because I’m OCD that way.
  • Loading branch information
bryanstearns committed Sep 25, 2018
1 parent 1cb008c commit f518567
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions boilerplate/src/services/reactotron/reactotron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,20 @@ if (__DEV__) {
} else {
// attach a mock so if things sneaky by our __DEV__ guards, we won't crash.
console.tron = {
benchmark: noop,
clear: noop,
close: noop,
configure: noop,
connect: noop,
use: noop,
useReactNative: noop,
clear: noop,
log: noop,
logImportant: noop,
display: noop,
error: noop,
image: noop,
log: noop,
logImportant: noop,
reportError: noop,
use: noop,
useReactNative: noop,
warn: noop,
}
}

Expand Down

0 comments on commit f518567

Please sign in to comment.