Skip to content

Commit

Permalink
重新设计 getSystemApp
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Oct 19, 2023
1 parent 7c91428 commit 662c7b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ pnpm add rubick-native

##### 入参 eg

- callback: (apps: Apps) => void | Promise<void> 用于接收应用信息的回调函数
- callback: (app: App) => void | Promise<void> 用于接收应用信息的回调函数
- extraPath: string 额外需要检索的文件夹

Apps object:
App object:

```json
{
Expand Down
4 changes: 2 additions & 2 deletions src/sysapp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { shortcutWin } from "./windows"
import { platform } from "os"
import { exeLookBase64 } from "../../addon"

export type CallBack = (apps: Apps) => void | Promise<void>
export type CallBack = (app: App) => void | Promise<void>

export interface Apps {
export interface App {
name: string;
description: string;
execPath: string;
Expand Down

0 comments on commit 662c7b2

Please sign in to comment.