Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@imedx/ics-imedx-chromely-plugin-intf-platform

Package Overview
Dependencies
Maintainers
20
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@imedx/ics-imedx-chromely-plugin-intf-platform

```javascript import IntfPlatform from '@imedx/ics-imedx-chromely-plugin-intf-platform' ```

  • 0.0.8-beta.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
20
Weekly downloads
 
Created
Source

引入

import IntfPlatform from '@imedx/ics-imedx-chromely-plugin-intf-platform'

使用方法

init 初始化接口

/**
 * 
 * @returns 成功:{code: 200, data, message: 'ok'}
 */
IntfPlatform.init()

dispose 释放核心接口

  /**
   * 
   * @returns 成功:{code: 200, data, message: 'ok'}
   */
IntfPlatform.dispose()

bussiness 业务交互接口

  /**
   * 
   * @param intfCode: string 
   * @param code: string
   * @param param: any
   * @returns 成功:{code: 200, data, message: 'ok'}
   */
IntfPlatform.bussiness(intfCode, code, param)

register 注册接口

   /**
   * 注册接口
   * @param name 接口名称
   * @param intfType 接口类型
   * @param config 接口配置
   */
  public static register(name: string, intfType: any, config: ConfigRecord)

getCoreInterface 获取核心接口

   /**
   * 获取核心接口
   * @param name 接口名称
   * @returns
   */
  public static getCoreInterface(name: string): IInterfaceCore | undefined

getInterface 获取实现接口

  /**
   * 获取实现接口
   * @param name 接口名称
   * @returns
   */
  public static getInterface(name: string): any | undefined

getInterfaceConfig 获取实现接口配置

  /**
   * 获取实现接口配置
   * @param name 接口名称
   * @returns
   */
  public static getInterfaceConfig(name: string): ConfigRecord | undefined

getCoreInterfaceConfig 获取核心接口配置

   /**
   * 获取核心接口配置
   * @param name 接口名称
   * @returns
   */
  public static getCoreInterfaceConfig(name: string): ConfigRecord | undefined

FAQs

Package last updated on 21 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc