Skip to content

Commit

Permalink
Add @template description
Browse files Browse the repository at this point in the history
  • Loading branch information
hata6502 committed Feb 20, 2021
1 parent 02f943a commit 85d1dac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions types/data-formats/output-data.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ import {BlockToolData} from '../tools';

/**
* Output of one Tool
*
* @template Type - the string literal describing a tool type
* @template Data - the structure describing a data object supported by the tool
*/
export interface OutputBlockData<S extends string = string, T extends object = any> {
export interface OutputBlockData<Type extends string = string, Data extends object = any> {
/**
* Tool type
*/
type: S;
type: Type;
/**
* Saved Block data
*/
data: BlockToolData<T>;
data: BlockToolData<Data>;
}

export interface OutputData {
Expand Down

0 comments on commit 85d1dac

Please sign in to comment.