UNPKG

@builder.io/console-feed

Version:

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

32 lines (25 loc) 539 B
import { Payload } from './Payload' import { Styles } from './Styles' import { Methods } from './Methods' 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[] } export interface Props { logs: Message[] variant?: Variants styles?: Styles filter?: Methods[] searchKeywords?: string logFilter?: Function } export interface MessageProps { log: Message }