diff --git a/README.md b/README.md index bad35a7..52cf876 100644 --- a/README.md +++ b/README.md @@ -113,10 +113,10 @@ pnpm add rubick-native ##### 入参 eg -- callback: (apps: Apps) => void | Promise 用于接收应用信息的回调函数 +- callback: (app: App) => void | Promise 用于接收应用信息的回调函数 - extraPath: string 额外需要检索的文件夹 -Apps object: +App object: ```json { diff --git a/src/sysapp/index.ts b/src/sysapp/index.ts index 8a7f435..3658d29 100644 --- a/src/sysapp/index.ts +++ b/src/sysapp/index.ts @@ -2,9 +2,9 @@ import { shortcutWin } from "./windows" import { platform } from "os" import { exeLookBase64 } from "../../addon" -export type CallBack = (apps: Apps) => void | Promise +export type CallBack = (app: App) => void | Promise -export interface Apps { +export interface App { name: string; description: string; execPath: string;