Skip to content

Commit a187b00

Browse files
committed
adjust the types on the augmented declaration
1 parent c46229e commit a187b00

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/animated-circle/common.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ export const spinBarColorProperty = new InheritedCssProperty<Style, Color>({
66
equalityComparer: Color.equals,
77
valueConverter: (value) => new Color(value),
88
});
9+
910
export const rimColorProperty = new InheritedCssProperty<Style, Color>({
1011
name: 'rimColor',
1112
cssName: 'rim-color',
1213
equalityComparer: Color.equals,
1314
valueConverter: (value) => new Color(value),
1415
});
16+
1517
export const barColorProperty = new InheritedCssProperty<Style, Color>({
1618
name: 'barColor',
1719
cssName: 'bar-color',
@@ -25,18 +27,18 @@ export class AnimatedCircleCommon extends ContentView {
2527
}
2628
}
2729

28-
// register after class definition or we'll get an exception according
29-
// to
30+
// register after class definition or we'll get an exception according to
3031
// https://docs.nativescript.org/core-concepts/properties#registering-the-property
3132

32-
// augmenting style definitino so it includes rimColor and barColor
33+
// augmenting style definition so it includes rimColor and barColor
3334
declare module '@nativescript/core/ui/styling/style' {
3435
interface Style {
35-
spinBarColor: Color;
36-
rimColor: Color;
37-
barColor: Color;
36+
spinBarColor: Color | string;
37+
rimColor: Color | string;
38+
barColor: Color | string;
3839
}
3940
}
41+
4042
// defines 'spinBarColor' property on Style class
4143
spinBarColorProperty.register(Style);
4244
// defines 'rimColor' property on Style class

0 commit comments

Comments
 (0)