import { IPlugin } from "../../baklavajs-core/types" ; export interface IConversion { targetType : string ; transformationFunction ( value ) : any ; } export interface INodeInterfaceType { color : string ; conversions : IConversion [ ] ; } export interface IInterfaceTypePlugin extends IPlugin { addType ( name , color ) : this ; addConversion ( from , to , transformationFunction ? ) : this ; getConversion ( from , to ) : IConversion | undefined ; canConvert ( from , to ) : boolean ; convert ( from , to , value ) : any ; }