Skip to content

Commit

Permalink
refactor(types): HTMLElement is already nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Dec 29, 2021
1 parent e3cb2e7 commit 41a3609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/IntersectionObserver.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
/**
* The HTML Element to observe.
* @type {null | HTMLElement}
* @type {HTMLElement}
*/
export let element = null;
Expand All @@ -21,7 +21,7 @@
/**
* Specify the containing element.
* Defaults to the browser viewport.
* @type {null | HTMLElement}
* @type {HTMLElement}
*/
export let root = null;
Expand Down
4 changes: 2 additions & 2 deletions types/IntersectionObserver.svelte.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface IntersectionObserverProps {
* The HTML Element to observe.
* @default null
*/
element?: null | HTMLElement;
element?: HTMLElement;

/**
* Set to `true` to unobserve the element
Expand All @@ -29,7 +29,7 @@ export interface IntersectionObserverProps {
* Defaults to the browser viewport.
* @default null
*/
root?: null | HTMLElement;
root?: HTMLElement;

/**
* Margin offset of the containing element.
Expand Down

0 comments on commit 41a3609

Please sign in to comment.