diff --git a/packages/core/index.d.ts b/packages/core/index.d.ts index ffd3b5a7d..212b44862 100644 --- a/packages/core/index.d.ts +++ b/packages/core/index.d.ts @@ -8,7 +8,7 @@ export type { NativeScriptConfig } from './config'; export { iOSApplication, AndroidApplication } from './application'; export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application'; -import { systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged } from './application'; +import { AndroidApplication, iOSApplication, systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged } from './application'; export declare const Application: { launchEvent: string; displayedEvent: string; @@ -41,8 +41,8 @@ export declare const Application: { hasLaunched: typeof hasLaunched; systemAppearance: typeof systemAppearance; setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged; - android: import('./application').AndroidApplication; - ios: import('./application').iOSApplication; + android: AndroidApplication; + ios: iOSApplication; }; import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings'; export declare const ApplicationSettings: { diff --git a/packages/core/index.ts b/packages/core/index.ts index 32aae19fe..3ff3545d0 100644 --- a/packages/core/index.ts +++ b/packages/core/index.ts @@ -39,9 +39,12 @@ export const Application = { hasLaunched, systemAppearance, setAutoSystemAppearanceChanged, - - android: appAndroid, - ios: iosApp, + get android() { + return appAndroid; + }, + get ios() { + return iosApp; + }, }; // Export all methods from "application-settings" as ApplicationSettings