trim.d.ts 368 B

12345678910111213141516171819
  1. import { XEUtilsMethods } from '../xe-utils'
  2. /**
  3. * 去除字符串左右两边的空格
  4. * @param str 字符串
  5. */
  6. export declare function trim(str: string): string;
  7. declare module '../xe-utils' {
  8. interface XEUtilsMethods {
  9. /**
  10. * 去除字符串左右两边的空格
  11. * @param str 字符串
  12. */
  13. trim: typeof trim;
  14. }
  15. }
  16. export default trim