transform.d.ts 518 B

12345678910111213
  1. import type { CodeKeywordDefinition } from "ajv";
  2. declare type TransformName = "trimStart" | "trimEnd" | "trimLeft" | "trimRight" | "trim" | "toLowerCase" | "toUpperCase" | "toEnumCase";
  3. interface TransformConfig {
  4. hash: Record<string, string | undefined>;
  5. }
  6. declare type Transform = (s: string, cfg?: TransformConfig) => string;
  7. declare const transform: {
  8. [key in TransformName]: Transform;
  9. };
  10. declare const getDef: (() => CodeKeywordDefinition) & {
  11. transform: typeof transform;
  12. };
  13. export default getDef;