@mojir/lits
Version:
Lits is a pure functional programming language implemented in TypeScript
14 lines (13 loc) • 800 B
TypeScript
import type { BuiltinNormalExpressions } from '../../../../builtin/interface';
type VectorReductionKey<T extends string> = `${T}`;
type VectorMovingWindowKey<T extends string> = `moving-${T}`;
type VectorCenteredMovingWindowKey<T extends string> = `centered-moving-${T}`;
type VectorRunningKey<T extends string> = `running-${T}`;
export type VectorReductionKeys<T extends string> = VectorReductionKey<T> | VectorMovingWindowKey<T> | VectorCenteredMovingWindowKey<T> | VectorRunningKey<T>;
type ReductionFunction = (vector: number[]) => number;
export type ReductionFunctionDefinition<T extends string> = Record<VectorReductionKey<T>, ReductionFunction> & {
minLength?: number;
padding?: number;
};
export declare const reductionFunctionNormalExpressions: BuiltinNormalExpressions;
export {};