Files
NativeScript/nativescript-core/module-name-resolver/qualifier-matcher/index.d.ts
Nathan Walker da3c0b973d chore: format
2020-07-11 11:01:40 -07:00

20 lines
384 B
TypeScript

/**
* Provides ModuleNameResolver class used for loading files based on device capabilities.
*/
export interface PlatformContext {
width: number;
height: number;
os: string;
deviceType: string;
}
export function findMatch(
path: string,
ext: string,
candidates: Array<string>,
context: PlatformContext
): string;
export function stripQualifiers(path: string): string;