mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
20 lines
643 B
TypeScript
20 lines
643 B
TypeScript
/**
|
|
* Provides ModuleNameResolver class used for loading files based on device capabilities.
|
|
*/ /** */
|
|
|
|
import { PlatformContext } from "./qualifier-matcher";
|
|
// export { PlatformContext } from "./qualifier-matcher";
|
|
|
|
export type ModuleListProvider = () => string[];
|
|
|
|
export class ModuleNameResolver {
|
|
constructor(context: PlatformContext, moduleListProvider?: ModuleListProvider);
|
|
resolveModuleName(path: string, ext: string): string;
|
|
clearCache(): void;
|
|
}
|
|
|
|
export function resolveModuleName(path: string, ext: string): string;
|
|
export function clearCache(): void;
|
|
|
|
export function _setResolver(resolver: ModuleNameResolver);
|