Skip to content

Commit 291d132

Browse files
authored
Merge pull request #13 from nicholaschiang/master
Add TypeScript declaration file
2 parents 3eff727 + dfff6a8 commit 291d132

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ import { CropOptions, CropResult } from "smartcrop";
99
* @return Promise that resolves with the final crop result that can then be
1010
* used by `sharp` to extract your final image.
1111
*/
12-
export function crop(image: Buffer | string, cropOptions: CropOptions): Promise<CropResult>;
12+
export function crop(image: Buffer | string, cropOptions: CropOptions): Promise<CropResult>;
13+

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "smartcrop-sharp",
33
"version": "2.0.4",
44
"description": "smartcrop adapter for sharp",
5+
"types": "index.d.ts",
56
"main": "index.js",
67
"types": "index.d.ts",
78
"scripts": {

0 commit comments

Comments
 (0)