chore: typing fixes

This commit is contained in:
Nathan Walker
2021-02-25 13:32:05 -08:00
parent 19ce9fc2bf
commit 1cd6854370
6 changed files with 148 additions and 146 deletions

View File

@@ -96,7 +96,7 @@ export declare class Page extends PageBase {
/**
* Should page changed be annnounced to the screen reader.
*/
public accessibilityAnnouncePageEnabled = true;
public accessibilityAnnouncePageEnabled: boolean;
/**
* A basic method signature to hook an event listener (shortcut alias to the addEventListener method).

View File

@@ -1,6 +1,7 @@
import { View } from '../core/view';
import { Property, CoercibleProperty } from '../core/properties';
import { EventData } from '../../data/observable';
import type { SliderBase } from './slider-common';
/**
* Represents a slider component.

View File

@@ -2,7 +2,7 @@ import { Color } from '../../color';
import { View } from '../core/view';
import { BackgroundRepeat } from '../../css/parser';
import { LinearGradient } from '../styling/linear-gradient';
import { BoxShadow } from './box-shadow';
import { CSSShadow } from './css-shadow';
export enum CacheMode {
none,
@@ -30,7 +30,7 @@ export declare class Background {
public borderBottomRightRadius: number;
public borderBottomLeftRadius: number;
public clipPath: string;
public boxShadow: string | BoxShadow;
public boxShadow: string | CSSShadow;
public withColor(value: Color): Background;
public withImage(value: string | LinearGradient): Background;
@@ -50,7 +50,7 @@ export declare class Background {
public withBorderBottomRightRadius(value: number): Background;
public withBorderBottomLeftRadius(value: number): Background;
public withClipPath(value: string): Background;
public withBoxShadow(value: BoxShadow): Background;
public withBoxShadow(value: CSSShadow): Background;
public isEmpty(): boolean;
@@ -67,7 +67,7 @@ export declare class Background {
public getUniformBorderWidth(): number;
public getUniformBorderRadius(): number;
public hasBoxShadow(): boolean;
public getBoxShadow(): BoxShadow;
public getBoxShadow(): CSSShadow;
}
export namespace ios {

View File

@@ -130,7 +130,7 @@ export type TextDecoration = 'none' | 'underline' | 'line-through' | 'underline
export const textAlignmentProperty: InheritedCssProperty<Style, TextAlignment>;
export const textDecorationProperty: CssProperty<Style, TextDecoration>;
export const textTransformProperty: CssProperty<Style, TextTransform>;
export const textShadowProperty: CssProperty<Style, TextShadow>;
export const textShadowProperty: CssProperty<Style, CSSShadow>;
export const whiteSpaceProperty: CssProperty<Style, WhiteSpace>;
export const letterSpacingProperty: CssProperty<Style, number>;
export const lineHeightProperty: CssProperty<Style, number>;