Skip to content

Commit

Permalink
Added Typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Aug 4, 2024
1 parent 3c4f208 commit 8a2d6eb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"postject": "./dist/cli.js"
},
"main": "dist/api.js",
"types": "dist/api.d.ts",
"scripts": {
"build": "zx ./scripts/build.mjs",
"clean": "rimraf ./build",
Expand Down
16 changes: 16 additions & 0 deletions src/api.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export interface InjectOptions {
/**
* @default '__POSTJECT'
*/
machoSegmentName?: string;
/**
* @default false
*/
overwrite?: boolean;
/**
* @default "POSTJECT_SENTINEL_fce680ab2cc467b6e072b8b5df1996b2"
*/
sentinelFuse?: string;
}

export function inject(filename: string, resourceName: string, resourceData: Buffer, options: InjectOptions): Promise<void>;

0 comments on commit 8a2d6eb

Please sign in to comment.