Skip to content

Commit 6fb677c

Browse files
committed
feat(types): rename typedef extension from .d.ts to .svelte.d.ts
1 parent 25cc2ab commit 6fb677c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

test/IntersectionObserver.test.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import SvelteIntersectionObserver from "../types";
3-
import type { Entry } from "../types/IntersectionObserver";
3+
import type { Entry } from "../types/IntersectionObserver.svelte";
4+
import IO from "../types/IntersectionObserver.svelte";
45
56
let intersecting = false;
67
let entry: Entry = null;
@@ -35,3 +36,10 @@
3536
>
3637
<div bind:this={element}>Hello world</div>
3738
</SvelteIntersectionObserver>
39+
40+
<!-- svelte-ignore missing-declaration -->
41+
<IO
42+
on:intersect={(e) => {
43+
console.log(e.detail);
44+
}}
45+
/>

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default as default } from "./IntersectionObserver";
1+
export { default as default } from "./IntersectionObserver.svelte";

0 commit comments

Comments
 (0)