Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strict: boolean argument not included in typings #63

Open
LaurensRietveld opened this issue Aug 3, 2022 · 1 comment
Open

strict: boolean argument not included in typings #63

LaurensRietveld opened this issue Aug 3, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@LaurensRietveld
Copy link

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.

@rubensworks
Copy link
Member

Ah, this looks like an issue in the README.

The strict option has been removed due to a recent change: 0afa4ea

@rubensworks rubensworks added the enhancement New feature or request label Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants