跳转到主要内容
static getPenInfo(): Promise<APIResponse<PenInfo>>;
返回

示例

import { PluginCommAPI } from 'sn-plugin-lib';

export async function exampleGetPenInfo() {
  const res = await PluginCommAPI.getPenInfo();
  if (!res.success) {
    throw new Error(res.error?.message ?? 'getPenInfo 调用失败');
  }
  return res.result;
}