mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
chore: fix types
This commit is contained in:
8
packages/core/utils/index.d.ts
vendored
8
packages/core/utils/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { dip, px } from '../ui/core/view';
|
||||
import { CoreTypes } from '../core-types';
|
||||
|
||||
export * from './mainthread-helper';
|
||||
export * from './macrotask-scheduler';
|
||||
@ -68,19 +68,19 @@ export namespace layout {
|
||||
* Convert device independent pixels to device pixels - dip to px.
|
||||
* @param value - The pixel to convert.
|
||||
*/
|
||||
export function toDevicePixels(value: dip): px;
|
||||
export function toDevicePixels(value: CoreTypes.dip): CoreTypes.px;
|
||||
|
||||
/**
|
||||
* Convert device pixels to device independent pixels - px to dip.
|
||||
* @param value - The pixel to convert.
|
||||
*/
|
||||
export function toDeviceIndependentPixels(value: px): dip;
|
||||
export function toDeviceIndependentPixels(value: CoreTypes.px): CoreTypes.dip;
|
||||
|
||||
/**
|
||||
* Rounds value used in layout.
|
||||
* @param px to round.
|
||||
*/
|
||||
export function round(px: px): px;
|
||||
export function round(px: CoreTypes.px): CoreTypes.px;
|
||||
|
||||
/**
|
||||
* Converts device pixels to device independent pixes and measure the nativeView.
|
||||
|
Reference in New Issue
Block a user