Skip to content

Commit

Permalink
+fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wmakeev committed Jul 19, 2021
1 parent dd01e23 commit 1c19dab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moysklad-api-model",
"version": "0.2.5",
"version": "0.2.6",
"description": "Объектная модель API МойСклад для TypeScript проектов",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/model/InvoiceOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export type InvoiceOutFields = {
customerOrder?: EntityRef<'customerorder'>
}

export type InvoiceOut = DocumentWithPositions<'invoiceout'> & HasVat
export type InvoiceOut = DocumentWithPositions<'invoiceout'> &
HasVat &
InvoiceOutFields

export type InvoiceOutPatch = DocumentWithPositionsPatch<'invoiceout'> &
HasVatPatch &
Expand Down
6 changes: 5 additions & 1 deletion test/model/common.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Patch } from '../../src'
import type { InvoiceOut, Patch, Template } from '../../src'
import { testTypeEqual } from '../tools'

const customerorder: Patch<'customerorder'> = {}
Expand All @@ -9,3 +9,7 @@ const invoiceOut: Patch<'invoiceout'> = {}

invoiceOut.positions?.[0].price
invoiceOut.customerOrder

const invoiceOutTemplate = {} as Template<InvoiceOut>

invoiceOutTemplate.customerOrder

0 comments on commit 1c19dab

Please sign in to comment.