From 662c7b2be385f376270cf006356e602951e13500 Mon Sep 17 00:00:00 2001 From: fan xia Date: Fri, 20 Oct 2023 00:09:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E8=AE=BE=E8=AE=A1=20getSyste?= =?UTF-8?q?mApp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- src/sysapp/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;