node-ejs-renderer/node_modules/ajv-keywords/dist/definitions/transform.d.ts

14 lines
518 B
TypeScript
Raw Permalink Normal View History

2024-06-09 13:55:01 -04:00
import type { CodeKeywordDefinition } from "ajv";
declare type TransformName = "trimStart" | "trimEnd" | "trimLeft" | "trimRight" | "trim" | "toLowerCase" | "toUpperCase" | "toEnumCase";
interface TransformConfig {
hash: Record<string, string | undefined>;
}
declare type Transform = (s: string, cfg?: TransformConfig) => string;
declare const transform: {
[key in TransformName]: Transform;
};
declare const getDef: (() => CodeKeywordDefinition) & {
transform: typeof transform;
};
export default getDef;