feat: TypeScript 4.8+ support and NativeClass decorator improvements (#10081)

This commit is contained in:
Nathan Walker
2022-11-08 15:18:10 -08:00
committed by GitHub
parent 59ca35b44b
commit 7f069a7093
24 changed files with 143 additions and 149 deletions

View File

@@ -556,7 +556,7 @@ export function test_setting_font_shorthand_property() {
test_font_shorthand_property('normal normal normal 15px/30px Arial', 'Arial', 15, 'normal', 'normal');
}
function test_font_shorthand_property(short: string, family: string, size: number, style: string, weight: string) {
function test_font_shorthand_property(short: string, family: string, size: number, style: string, weight: string | number) {
const testView = new Button();
(<any>testView.style)['font'] = short;