fix(mining-admin-service): 添加 adbkit-apkreader 类型声明
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
8314dda670
commit
fd64903841
|
|
@ -0,0 +1,28 @@
|
||||||
|
/**
|
||||||
|
* Type declarations for adbkit-apkreader
|
||||||
|
* 用于解析 Android APK 文件
|
||||||
|
*/
|
||||||
|
declare module 'adbkit-apkreader' {
|
||||||
|
interface Manifest {
|
||||||
|
package: string
|
||||||
|
versionCode: number
|
||||||
|
versionName: string
|
||||||
|
usesPermissions?: string[]
|
||||||
|
application?: {
|
||||||
|
label?: string
|
||||||
|
icon?: string
|
||||||
|
}
|
||||||
|
usesSdk?: {
|
||||||
|
minSdkVersion?: number
|
||||||
|
targetSdkVersion?: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ApkReader {
|
||||||
|
static open(path: string): Promise<ApkReader>
|
||||||
|
readManifest(): Promise<Manifest>
|
||||||
|
readContents(): Promise<Buffer>
|
||||||
|
}
|
||||||
|
|
||||||
|
export = ApkReader
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue