From 1351effcf76b9a091101193ee65cdcc1839861bb Mon Sep 17 00:00:00 2001 From: David Luna Date: Sun, 8 Sep 2024 23:47:59 +0200 Subject: [PATCH] chore: update types --- lib/css-selector.js | 2 +- lib/csset.js | 2 +- types/css-selector.d.ts | 4 ++-- types/csset.d.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/css-selector.js b/lib/css-selector.js index efabd88..8c06d1c 100644 --- a/lib/css-selector.js +++ b/lib/css-selector.js @@ -65,7 +65,7 @@ export class CssSelector { /** * @param {CssSelector} other - * @returns {CssSelector | undefined} + * @returns {CssSelector} */ intersection(other) { if (this.supersetOf(other)) { diff --git a/lib/csset.js b/lib/csset.js index 3082b19..e765b11 100644 --- a/lib/csset.js +++ b/lib/csset.js @@ -150,7 +150,7 @@ export class Csset { /** * @param {Csset} other - * @returns {Csset | undefined} + * @returns {Csset} */ intersection(other) { if (this.supersetOf(other)) { diff --git a/types/css-selector.d.ts b/types/css-selector.d.ts index 676faae..4935e00 100644 --- a/types/css-selector.d.ts +++ b/types/css-selector.d.ts @@ -28,9 +28,9 @@ export class CssSelector { subsetOf(other: CssSelector): boolean; /** * @param {CssSelector} other - * @returns {CssSelector | undefined} + * @returns {CssSelector} */ - intersection(other: CssSelector): CssSelector | undefined; + intersection(other: CssSelector): CssSelector; /** * @returns {string} */ diff --git a/types/csset.d.ts b/types/csset.d.ts index be46493..f06faf1 100644 --- a/types/csset.d.ts +++ b/types/csset.d.ts @@ -27,9 +27,9 @@ export class Csset { union(other: Csset): Csset; /** * @param {Csset} other - * @returns {Csset | undefined} + * @returns {Csset} */ - intersection(other: Csset): Csset | undefined; + intersection(other: Csset): Csset; /** * @returns {string} */