fix(core): type collisions with namespace (#8809)

This commit is contained in:
Nathan Walker
2021-02-25 21:03:07 -08:00
parent a67fb69687
commit 733050995c
110 changed files with 1882 additions and 1827 deletions

View File

@@ -1,4 +1,4 @@
import { EventData } from '@nativescript/core/data/observable';
import { EventData, getViewById } from '@nativescript/core';
import { TestPageMainViewModel } from '../../test-page-main-view-model';
import { WrapLayout } from '@nativescript/core/ui/layouts/wrap-layout';
import { Page } from '@nativescript/core/ui/page';
@@ -6,9 +6,8 @@ import { isAndroid } from '@nativescript/core/platform';
export function pageLoaded(args: EventData) {
let page = <Page>args.object;
let view = require('@nativescript/core/ui/core/view');
let wrapLayout = view.getViewById(page, 'wrapLayoutWithExamples');
let wrapLayout = <WrapLayout>getViewById(page, 'wrapLayoutWithExamples');
let examples: Map<string, string> = new Map<string, string>();
if (isAndroid) {