UNPKG

@nicksrandall/console-feed

Version:

A React component that displays console logs from the current page, an iframe or transported across a server

37 lines (30 loc) 676 B
import { Payload } from './Payload' import { Styles } from './Styles' import { Methods } from './Methods' import type { Options } from 'linkifyjs' export type Variants = 'light' | 'dark' export interface Theme { variant: Variants styles: Styles } export interface Context extends Theme { method: Methods } export interface Message extends Payload { data: any[] amount?: number } export interface Props { logs: Message[] variant?: Variants styles?: Styles filter?: Methods[] searchKeywords?: string logFilter?: Function logGrouping?: Boolean linkifyOptions?: Options } export interface MessageProps { log: Message linkifyOptions?: Options }