chore: fix types

This commit is contained in:
Nathan Walker
2021-03-26 16:32:24 -07:00
parent eb7c1c450a
commit 266ae2a71d
14 changed files with 42 additions and 38 deletions

View File

@ -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.