Skip to content

Commit e928db9

Browse files
committed
Added Typescript declaration files
1 parent d3f9ea0 commit e928db9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

dist/index.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const recognize: (image: Buffer, options?: RecognizeOptions) => Promise<string>;
2+
3+
export interface RecognizeOptions {
4+
lang?: string | Array<string>;
5+
output?: 'txt' | 'tsv';
6+
tessdataPath?: string,
7+
}

dist/index.d.ts.map

+1
Original file line numberDiff line numberDiff line change

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"gypfile": true,
66
"main": "lib/index.js",
77
"module": "src/index.js",
8+
"types": "./dist/index.d.ts",
89
"devDependencies": {
910
"ava": "^0.16.0",
1011
"babel-cli": "^6.16.0",

0 commit comments

Comments
 (0)