Skip to content

Commit

Permalink
chore: fix dts jsdoc test
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Nov 7, 2024
1 parent 02b6b06 commit fe9ad7d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
export default TestRunes;
type TestRunes = {
$on?(type: string, callback: (e: any) => void): () => void;
$set?(props: Partial<$$ComponentProps>): void;
} & {
baz: () => void;
};
declare const TestRunes: import("svelte").Component<{
foo: string;
bar?: number;
}, {
baz: () => void;
}, "bar">;
type TestRunes = ReturnType<typeof TestRunes>;
export default TestRunes;
type $$ComponentProps = {
foo: string;
bar?: number;
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
let { foo, bar = $bindable() }: { foo: string, bar?: number } = $props();
<script>
/** @type {{ foo: string, bar?: number }} */
let { foo, bar = $bindable() } = $props();
export function baz() {}
</script>

0 comments on commit fe9ad7d

Please sign in to comment.