@alauda-fe/common
Version:
Alauda frontend team common codes.
18 lines (17 loc) • 765 B
TypeScript
/**
* @packageDocumentation
* @module utils
*/
import { PipeTransform } from '@angular/core';
import { IfEqual } from '../../core/public-api';
import * as i0 from "@angular/core";
export type OmitFirst<T extends unknown[]> = T extends [unknown, ...infer R] ? R : [];
export declare class PurePipe implements PipeTransform {
/**
* ! Notice: function overload is not supported for `mapper`,
* you may have to use `$any` to workaround in template.
*/
transform<T extends (...args: any[]) => unknown>(value: Parameters<T>[0], mapper: T, ...args: IfEqual<T, any, any[], OmitFirst<Parameters<T>>>): ReturnType<T>;
static ɵfac: i0.ɵɵFactoryDeclaration<PurePipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<PurePipe, "pure", true>;
}