Skip to content

Commit c76cf42

Browse files
🔧 tweak pre-commit hook behavior (#193)
1 parent 6ed72ca commit c76cf42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/invoice_splitter_v1.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ The following fields are extracted for Invoice Splitter V1:
134134
**invoicePageGroups** ([PageGroup](#page-group)[]): List of page indexes that belong to the same invoice in the PDF.
135135

136136
```js
137-
console.log(result.document.inference.prediction.invoicePageGroups.toString());
137+
for (const invoicePageGroupsElem of result.document.inference.prediction.invoicePageGroups){
138+
console.log(invoicePageGroupsElem.pageIndexes.join(", "));
139+
}
138140
```
139141

140142
# Questions?

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint": "eslint './src/**/*.ts' --report-unused-disable-directives && echo 'Your .ts files look good.'",
1414
"docs": "typedoc --out docs/_build ./src/index.ts",
1515
"docs-for-dist": "typedoc --out docs/_build ./src/index.ts && cp -r ./docs/code_samples ./docs/_build/",
16-
"prepare": "husky install"
16+
"postinstall": "husky install"
1717
},
1818
"files": [
1919
"src/*",

0 commit comments

Comments
 (0)