Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/reactotron-core-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ export interface CustomCommand {
args?: CustomCommandArg[]
}

export interface LogArguments {
name: string,
value: any,
important?: boolean,
preview?: string
}

export interface ReactotronCore {
startTimer: () => () => number
close: () => void
Expand Down Expand Up @@ -106,8 +113,8 @@ export interface ReactotronCore {
}) => void

// Logger Plugin
log?: (...args: any[]) => void
logImportant?: (...args: any[]) => void
log?: (...args: (LogArguments|any)[]) => void
logImportant?: (...args: (LogArguments|any)[]) => void
debug?: (message: any, important?: boolean) => void
warn?: (message: any) => void
error?: (message: any, stack: any) => void
Expand Down