@obliczeniowo/elementary
Version:
Library made in Angular version 20
26 lines (22 loc) • 954 B
JavaScript
import * as i0 from '@angular/core';
import { Pipe } from '@angular/core';
import { of, delay } from 'rxjs';
class ToAsyncPipe {
transform(value, time = 10) {
return of(value).pipe(delay(time));
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ToAsyncPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.4", ngImport: i0, type: ToAsyncPipe, isStandalone: true, name: "toAsync" });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: ToAsyncPipe, decorators: [{
type: Pipe,
args: [{
name: 'toAsync',
standalone: true,
}]
}] });
/**
* Generated bundle index. Do not edit.
*/
export { ToAsyncPipe };
//# sourceMappingURL=obliczeniowo-elementary-async-pipes.mjs.map