feat(ts) make tsc happy

This commit is contained in:
Saúl Ibarra Corretgé
2022-11-01 13:36:32 +01:00
committed by Saúl Ibarra Corretgé
parent 49bcf5c179
commit 7cd39b7983
55 changed files with 937 additions and 782 deletions

View File

@@ -63,7 +63,7 @@ export function escapeRegexp(s: string) {
* @param {Object} w - Window object to use instead of the built in one.
* @returns {string}
*/
export function getBaseUrl(w: Window = window) {
export function getBaseUrl(w: typeof window = window) {
const doc = w.document;
const base = doc.querySelector('base');