Skip to content

Commit 892df3f

Browse files
committed
Update types.
1 parent a829cbc commit 892df3f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

types/lib/mixins/element-mixin.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ declare namespace Polymer {
209209
* this element. This method will return the same URL before and after
210210
* bundling.
211211
*
212+
* Note that this function performs no resolution for URLs that start
213+
* with `/` (absolute URLs) or `#` (hash identifiers). For general purpose
214+
* URL resolution, use `window.URL`.
215+
*
212216
* @param url URL to resolve.
213217
* @param base Optional base URL to resolve against, defaults
214218
* to the element's `importPath`

types/lib/utils/resolve-url.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ declare namespace Polymer {
2121
/**
2222
* Resolves the given URL against the provided `baseUri'.
2323
*
24+
* Note that this function performs no resolution for URLs that start
25+
* with `/` (absolute URLs) or `#` (hash identifiers). For general purpose
26+
* URL resolution, use `window.URL`.
27+
*
2428
* @returns resolved URL
2529
*/
2630
function resolveUrl(url: string, baseURI?: string|null): string;

0 commit comments

Comments
 (0)