@bitblit/ratchet-common
Version:
Common tools for general use
19 lines (18 loc) • 1.11 kB
TypeScript
import { TransformRule } from './transform-rule.js';
export declare class BuiltInTransforms {
static keysOnly(rule: TransformRule): TransformRule;
static valuesOnly(rule: TransformRule): TransformRule;
static stringReplaceTransform(input: string, output: string): TransformRule;
static stripStringTransform(input: string): TransformRule;
static retainAll(input: string[]): TransformRule;
static removeAll(input: string[]): TransformRule;
static snakeToCamelCase(): TransformRule;
static stringToNumber(): TransformRule;
static camelToSnakeCase(): TransformRule;
static concatenateToNewField(newFieldName: string, oldFieldNamesInOrder: string[], abortIfFieldMissing?: boolean): TransformRule;
static numberToBool(fieldNames: string[]): TransformRule;
static boolToNumber(fieldNames: string[]): TransformRule;
static makeDuplicateField(oldName: string, newName: string): TransformRule;
static addField(name: string, valueToAdd: string): TransformRule;
static reformatDateFields(fieldNames: string[], oldFormat: string, newFormat: string): TransformRule;
}