From 892df3f32c6562c7ba254c75510d1c8ae9e60faf Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 31 Jan 2018 15:51:30 -0800 Subject: [PATCH] Update types. --- types/lib/mixins/element-mixin.d.ts | 4 ++++ types/lib/utils/resolve-url.d.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/types/lib/mixins/element-mixin.d.ts b/types/lib/mixins/element-mixin.d.ts index afcb31e67a..6658ed4ad3 100644 --- a/types/lib/mixins/element-mixin.d.ts +++ b/types/lib/mixins/element-mixin.d.ts @@ -209,6 +209,10 @@ declare namespace Polymer { * this element. This method will return the same URL before and after * bundling. * + * 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`. + * * @param url URL to resolve. * @param base Optional base URL to resolve against, defaults * to the element's `importPath` diff --git a/types/lib/utils/resolve-url.d.ts b/types/lib/utils/resolve-url.d.ts index 6d894f64c6..5aae176fff 100644 --- a/types/lib/utils/resolve-url.d.ts +++ b/types/lib/utils/resolve-url.d.ts @@ -21,6 +21,10 @@ declare namespace Polymer { /** * 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;