Repository: NativeScript/NativeScript
File: packages/core/application/application-shims.ts (TypeScript)

Code before:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.off()
 * ```
 */
export const off = Application.off.bind(Application);

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.on()
 * ```
 */
export const on = Application.on.bind(Application);

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.orientation()
 * ```
 */
export const orientation = () => Application.orientation();

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.resetRootView()
 * ```
 */
export const resetRootView = Application.resetRootView.bind(Application);

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.resetRootView()
 * ```
 */
export const _resetRootView = Application.resetRootView.bind(Application);

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts

Review comment (suggestion):
```suggestion
export const orientation = Application.orientation.bind(Application)
```

Code after:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.off()
 * ```
 */
export const off = Application.off.bind(Application);

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.on()
 * ```
 */
export const on = Application.on.bind(Application);

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.orientation()
 * ```
 */
export const orientation = Application.orientation.bind(Application)

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.resetRootView()
 * ```
 */
export const resetRootView = Application.resetRootView.bind(Application);

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.resetRootView()
 * ```
 */
export const _resetRootView = Application.resetRootView.bind(Application);

/**
 * @deprecated Deep imports into the Application module are deprecated and will be removed in a future release.
 * Use the `Application` class imported from "@nativescript/core" instead:
 * ```ts