UNPKG

@nu-art/thunder

Version:

Thunder - React & Typescript based frontend framework

26 lines (25 loc) 1.25 kB
/** * Created by tacb0ss on 28/07/2018. */ import * as React from "react"; import { LogLevel } from "@nu-art/ts-common"; export declare class BaseComponent<P = any, S = any> extends React.Component<P, S> { private logger; private readonly _componentDidMount; private readonly _componentWillUnmount; constructor(props: P); protected logVerbose(message: string, error?: Error): void; protected logDebug(message: string, error?: Error): void; protected logInfo(message: string, error?: Error): void; protected logWarning(message: string, error?: Error): void; protected logError(message: string, error?: Error): void; protected log(level: LogLevel, bold: boolean, message?: string | undefined | Error, error?: Error): void; static store(key: string, value: string | object): void; static load(key: string, defaultValue: string | number | object | undefined): string | number | object | null; static getElementId(e: React.BaseSyntheticEvent): string; static getImageUrl(_relativePath: string): string; static getQueryParameter(name: string): string | undefined; static getUrl(): string; static getLocalizedString(key: string, ...params: any[]): string; toString(): string; }