Skip to content

strict: boolean argument not included in typings #63

Open
@LaurensRietveld

Description

@LaurensRietveld

The project README.md references a strict: boolean option that influences whether the SAX parser runs in strict mode.
This property is not included in the typescript typing though, and the following snippet causes a typescript error:

new RdfXmlParser({
  dataFactory: require('@rdfjs/data-model'),
  baseIRI: 'http://example.org/',
  defaultGraph: namedNode('http://example.org/graph'),
  strict: true,
  trackPosition: true,
  allowDuplicateRdfIds: true,
  validateUri: true,
});

Not sure whether this is a documentation issue or a typing issue though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions