Home > SYS_ExternalApi > unregister
SYS_ExternalApi.unregister() method
注销指定接口
Signature
typescript
function unregister(namespace: string, apiName: string): boolean;1
Parameters
Parameter | Type | Description |
|---|---|---|
namespace | string | 命名空间 |
apiName | string | 接口名 |
Returns
boolean
是否成功注销
Example
javascript
// 注销此前注册的接口
const removed = eda.sys_ExternalApi.unregister('component', 'placeComponent');1
2
2