bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
21 lines (20 loc) • 460 B
TypeScript
/// <reference types="react" />
export declare type InsightMetaData = {
name: string;
description: string;
};
export declare type InsightResult = {
metaData: InsightMetaData;
message?: string;
data: any;
renderedData: React.ReactElement;
};
export declare type RawResult = {
message?: string;
data: any;
};
export interface Insight {
name: string;
description: string;
run(...args: any[]): Promise<InsightResult>;
}