template.d.ts 559 B

1234567891011121314151617
  1. /**
  2. * 解析动态字符串模板
  3. * @param str 字符串模板
  4. * @param args 对象
  5. */
  6. export declare function template(str: string, args: any | any[]): string;
  7. export declare function template(str: any, args: any | any[]): string;
  8. export declare function template(str: string, args: any | any[], options: { tmplRE?: RegExp }): string;
  9. export declare function template(str: any, args: any | any[], options: { tmplRE?: RegExp }): string;
  10. declare module './ctor' {
  11. interface XEUtilsMethods {
  12. template: typeof template;
  13. }
  14. }
  15. export default template