UNPKG

@yandex/ymaps3-types

Version:

Types for ymaps3 maps library

23 lines (22 loc) 761 B
import "./modules/types"; import "./packages/types"; export type Module = Function | null | { [key: string]: Function | object; }; export type Loader = (pkg: string) => Promise<Module> | Module; type Packages = Record<string, { version: string; path?: string; export?: string; }>; export interface Import { loaders: Loader[]; default: Loader; cdn: (templatePath: string, packages: Packages | string[] | string) => Loader; registerCdn: (templatePath: string, packages: Packages | string[] | string) => void; script: (url: string) => Promise<unknown>; cssText: (cssText: string, name: string) => Promise<unknown>; style: (url: string) => Promise<unknown>; } declare const ymaps3Import: Import; export { ymaps3Import };