url.d.ts 517 B

12345678910111213141516
  1. export declare function parseVersion(version: any): "next" | {
  2. major: number;
  3. minor: number;
  4. };
  5. /**
  6. * Get the CDN url for a given version
  7. *
  8. * @param version Ex: '4.23' or '3.40'. Defaults to the latest 4.x version.
  9. */
  10. export declare function getCdnUrl(version?: string): string;
  11. /**
  12. * Get the CDN url for a the CSS for a given version and/or theme
  13. *
  14. * @param version Ex: '4.23', '3.40', or 'next'. Defaults to the latest 4.x version.
  15. */
  16. export declare function getCdnCssUrl(version?: string): string;