Skip to content

Commit

Permalink
docs: fix formatted of intersectionObserverEntry interface
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Jul 5, 2021
1 parent b95b7cd commit 33515e5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/8cd2327a580c4f429c71f7df999b

<!-- TOC -->

## Install
## Installation

**Yarn**

```bash
yarn add -D svelte-intersection-observer
# OR
```

**NPM**

```bash
npm i -D svelte-intersection-observer
```

Expand Down Expand Up @@ -122,7 +128,8 @@ Note that all properties in `IntersectionObserverEntry` are read only.
<details>
<summary><code>IntersectionObserverEntry</code></summary>

```html
<!-- prettier-ignore-start -->
```js
interface IntersectionObserverEntry {
target: HTMLElement;
time: number;
Expand Down Expand Up @@ -161,10 +168,10 @@ interface IntersectionObserverEntry {
};
}
```
<!-- prettier-ignore-end -->

</details>


## Examples

The [examples folder](examples/) contains sample set-ups.
Expand Down

0 comments on commit 33515e5

Please sign in to comment.