UNPKG

440 BTypeScriptView Raw
1/**
2 * Provides ModuleNameResolver class used for loading files based on device capabilities.
3 */
4
5/**
6 * Used with qualifier matchers and module resolution
7 */
8export interface PlatformContext {
9 width: number;
10 height: number;
11 os: string;
12 deviceType: string;
13}
14
15export function findMatch(path: string, ext: string, candidates: Array<string>, context: PlatformContext): string;
16
17export function stripQualifiers(path: string): string;