Skip to content

Commit 3843a0d

Browse files
authored
Added Generic parameter to TabBar type declaration
1 parent b8b710c commit 3843a0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tab-bar/src/TabBar.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { TabScrollerComponentDev } from '@smui/tab-scroller';
22
import type Component from './TabBar.svelte';
33

4-
export declare class TabBarComponentDev extends Component {
4+
export declare class TabBarComponentDev<T> extends Component<T> {
55
/**
66
* @private
77
* For type checking capabilities only.
@@ -22,5 +22,5 @@ export declare class TabBarComponentDev extends Component {
2222
{
2323
[k in keyof TabScrollerComponentDev['$$prop_def'] as `tabScroller\$${k}`]?: TabScrollerComponentDev['$$prop_def'][k];
2424
} &
25-
Component['$$prop_def'];
25+
Component<T>['$$prop_def'];
2626
}

0 commit comments

Comments
 (0)