Blame view

node_modules/url-toolkit/src/url-toolkit.d.ts 545 Bytes
2a09d1a4   liuqimichale   添加宜春 天水 宣化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  export as namespace URLToolkit;
  
  declare namespace URLToolkit {
    export type URLParts = {
      scheme: string,
      netLoc: string,
      path: string,
      params: string,
      query: string,
      fragment: string
    };
  }
  
  declare var URLToolkit: {
      buildAbsoluteURL: (baseURL: string, relativeURL: string, opts?: { alwaysNormalize?: boolean }) => string;
      parseURL: (url: string) => URLToolkit.URLParts | null;
      normalizePath: (path: string) => string;
      buildURLFromParts: (parts: URLToolkit.URLParts) => string;
  };
  
  export = URLToolkit;