Skip to content

Documentation / @facturometro/core / IssueLocation

Interface: IssueLocation ​

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

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 '@facturometro/core';

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

Properties ​

column ​

readonly column: number

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

1-based column of the offending node.


line ​

readonly line: number

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

1-based line of the offending node.


offset ​

readonly offset: number

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

0-based character offset of the offending node.

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.