diff options
Diffstat (limited to 'chromium/third_party/catapult/third_party/polymer2/bower_components/polymer/types/lib/utils/resolve-url.d.ts')
-rw-r--r-- | chromium/third_party/catapult/third_party/polymer2/bower_components/polymer/types/lib/utils/resolve-url.d.ts | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/chromium/third_party/catapult/third_party/polymer2/bower_components/polymer/types/lib/utils/resolve-url.d.ts b/chromium/third_party/catapult/third_party/polymer2/bower_components/polymer/types/lib/utils/resolve-url.d.ts new file mode 100644 index 00000000000..5aae176fffc --- /dev/null +++ b/chromium/third_party/catapult/third_party/polymer2/bower_components/polymer/types/lib/utils/resolve-url.d.ts @@ -0,0 +1,50 @@ +/** + * DO NOT EDIT + * + * This file was automatically generated by + * https://github.com/Polymer/gen-typescript-declarations + * + * To modify these typings, edit the source file(s): + * lib/utils/resolve-url.html + */ + +/// <reference path="boot.d.ts" /> + +declare namespace Polymer { + + /** + * Module with utilities for resolving relative URL's. + */ + namespace ResolveUrl { + + + /** + * Resolves the given URL against the provided `baseUri'. + * + * Note that this function performs no resolution for URLs that start + * with `/` (absolute URLs) or `#` (hash identifiers). For general purpose + * URL resolution, use `window.URL`. + * + * @returns resolved URL + */ + function resolveUrl(url: string, baseURI?: string|null): string; + + + /** + * Resolves any relative URL's in the given CSS text against the provided + * `ownerDocument`'s `baseURI`. + * + * @returns Processed CSS text with resolved URL's + */ + function resolveCss(cssText: string, baseURI: string): string; + + + /** + * Returns a path from a given `url`. The path includes the trailing + * `/` from the url. + * + * @returns resolved path + */ + function pathFromUrl(url: string): string; + } +} |