endsWith.d.ts 507 B

12345678910111213141516171819202122
  1. /**
  2. * 判断字符串是否在源字符串的头部
  3. * @param str 字符串
  4. * @param val 值
  5. */
  6. export declare function endsWith(str: string, val: string): string;
  7. /**
  8. * 判断字符串是否在源字符串的头部
  9. * @param str 字符串
  10. * @param val 值
  11. * @param startIndex 开始索引
  12. */
  13. export declare function endsWith(str: string, val: string, startIndex: number): string;
  14. declare module './ctor' {
  15. interface XEUtilsMethods {
  16. endsWith: typeof endsWith;
  17. }
  18. }
  19. export default endsWith