Skip to content

Commit c9a34f1

Browse files
authored
(fix) remove ref from IntrinsicAttributes
React specific thing #319
1 parent 822c943 commit c9a34f1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/svelte2tsx/svelte-jsx.d.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,13 @@
2828

2929
type NativeElement = HTMLElement;
3030

31-
interface IntrinsicAttributes {
32-
ref?: (instance: Element) => void;
33-
}
31+
interface IntrinsicAttributes {}
3432

3533
// TypeScript SVGElement has no `dataset` (Chrome 55+, Firefox 51+).
3634
type Element = NativeElement & {
3735
dataset: DOMStringMap;
3836
};
3937

40-
interface Ref<T> {
41-
current: null | T;
42-
}
43-
4438
//
4539
// Event Handler Types
4640
// ----------------------------------------------------------------------

0 commit comments

Comments
 (0)