mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 20:21:46 +00:00
Update non npm package type definition amap-js-api (#41934)
This commit is contained in:
@@ -972,6 +972,18 @@ testPixel.toFixed();
|
||||
// $ExpectType Pixel
|
||||
testPixel.toFixed(2);
|
||||
|
||||
/**
|
||||
* plugin.ts
|
||||
*/
|
||||
|
||||
AMap.plugin('plugin name', () => {
|
||||
// callback
|
||||
});
|
||||
|
||||
AMap.service('plugin name', () => {
|
||||
// callback
|
||||
});
|
||||
|
||||
/**
|
||||
* size.ts
|
||||
*/
|
||||
|
||||
Vendored
+1
@@ -15,6 +15,7 @@
|
||||
/// <reference path="lngLat.d.ts" />
|
||||
/// <reference path="map.d.ts" />
|
||||
/// <reference path="pixel.d.ts" />
|
||||
/// <reference path="plugin.d.ts" />
|
||||
/// <reference path="size.d.ts" />
|
||||
/// <reference path="type-util.d.ts" />
|
||||
/// <reference path="util.d.ts" />
|
||||
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
declare namespace AMap {
|
||||
/**
|
||||
* 加载插件,
|
||||
* @param name 插件名称
|
||||
* @param callback 插件加载完成后的回调函数
|
||||
*/
|
||||
function plugin(plugin: string | string[], callback: () => void): typeof AMap;
|
||||
/**
|
||||
* 加载插件,
|
||||
* @param name 插件名称
|
||||
* @param callback 插件加载完成后的回调函数
|
||||
*/
|
||||
function service(plugin: string | string[], callback: () => void): typeof AMap;
|
||||
}
|
||||
@@ -21,4 +21,4 @@
|
||||
"index.d.ts",
|
||||
"amap-js-api-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user