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

Code before:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.setMaxRefreshRate()
 * ```
 */
export const setMaxRefreshRate = Application.setMaxRefreshRate.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.setResources()
 * ```
 */
export const setResources = Application.setResources.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.systemAppearance()
 * ```
 */
export const systemAppearance = () => Application.systemAppearance();

/**
 * @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.systemAppearanceChanged()
 * ```
 */
export const systemAppearanceChanged = Application.systemAppearanceChanged.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.discardedErrorEvent
 * ```
 */
export const discardedErrorEvent = Application.discardedErrorEvent;

/**
 * @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 systemAppearance = Application.systemAppearance.bind(Application);
```

Code after:
 * ```ts
 * import { Application } from "@nativescript/core";
 * Application.setMaxRefreshRate()
 * ```
 */
export const setMaxRefreshRate = Application.setMaxRefreshRate.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.setResources()
 * ```
 */
export const setResources = Application.setResources.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.systemAppearance()
 * ```
 */
export const systemAppearance = Application.systemAppearance.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.systemAppearanceChanged()
 * ```
 */
export const systemAppearanceChanged = Application.systemAppearanceChanged.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.discardedErrorEvent
 * ```
 */
export const discardedErrorEvent = Application.discardedErrorEvent;

/**
 * @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