replace-quotes
Version:
Swap quote styles in strings effortlessly
9 lines (7 loc) • 358 B
TypeScript
type match = string | [string, string] | [string, string, boolean];
type replace = string | [string, string];
declare const double: string;
declare const single: string;
declare const backtick: string;
declare function replaceQuotes(...quotes: [...replace[], match]): (text: string) => string;
export { backtick, replaceQuotes as default, double, single };