@sedeh/into-pipes
Version:
Have you ever wanted to transform data in different parts of your application into interactive objects without writing a single line of code?
16 lines (15 loc) • 493 B
TypeScript
import { EventEmitter } from '@angular/core';
export interface PipeComponentInterface {
source: any;
id: string;
name: string;
disabled: boolean;
active: boolean;
validate(item: any, newValue: any): boolean;
service?: PipeServiceComponentInterface;
onIntoComponentChange: EventEmitter<any>;
transform(source: any, data: any, args?: any[]): void;
}
export interface PipeServiceComponentInterface {
getDataFor(name: string, id: string, item: any): any;
}