Skip to content

Documentation / @einvoice-ts/core / IssueLocation

Interface: IssueLocation ​

Defined in: packages/core/src/issue.ts:66

Position of a diagnostic in the source XML.

Only available for documents that were parsed; built documents have no source text. line and column are 1-based, offset is a 0-based character offset.

Example ​

ts
import type { IssueLocation } from '@einvoice-ts/core';

const location: IssueLocation = { column: 5, line: 42, offset: 1234 };

Properties ​

column ​

readonly column: number

Defined in: packages/core/src/issue.ts:68

1-based column of the offending node.


line ​

readonly line: number

Defined in: packages/core/src/issue.ts:70

1-based line of the offending node.


offset ​

readonly offset: number

Defined in: packages/core/src/issue.ts:72

0-based character offset of the offending node.

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.