Skip to content

Commit ea43f13

Browse files
committed
chore: tsc errors fix
1 parent 1a2e4a7 commit ea43f13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core-tabs/tab-strip-item/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @module @nativescript-community/ui-material-core-tabs/tab-strip-item
33
*/
4-
import { AddChildFromBuilder, CSSType, Color, CoreTypes, Image, Label, PropertyChangeData, PseudoClassHandler, View, ViewBase } from '@nativescript/core';
4+
import { AddChildFromBuilder, CSSType, Color, CoreTypes, Image, ImageAsset, ImageSource, Label, PropertyChangeData, PseudoClassHandler, View, ViewBase } from '@nativescript/core';
55
import { backgroundColorProperty, backgroundInternalProperty } from '@nativescript/core/ui/styling/style-properties';
66
import { textTransformProperty } from '@nativescript/core/ui/text-base';
77
import { TabStripItem as TabStripItemDefinition } from '.';
@@ -19,7 +19,7 @@ export class TabStripItem extends View implements TabStripItemDefinition, AddChi
1919
private mIndex: number;
2020

2121
private mTitle: string;
22-
private mIconSource: string;
22+
private mIconSource: string | ImageSource | ImageAsset;
2323
private mIconClass: string;
2424

2525
private mHighlightedHandler: () => void;
@@ -73,15 +73,15 @@ export class TabStripItem extends View implements TabStripItemDefinition, AddChi
7373
}
7474
}
7575

76-
get iconSource() {
76+
get iconSource(): string | ImageSource | ImageAsset {
7777
if (this.isLoaded) {
7878
return this.image.src;
7979
}
8080

8181
return this.mIconSource;
8282
}
8383

84-
set iconSource(value: string) {
84+
set iconSource(value: string | ImageSource | ImageAsset) {
8585
this.mIconSource = value;
8686

8787
if (this.isLoaded) {

0 commit comments

Comments
 (0)