template.d.ts 547 B

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