Skip to content

Commit

Permalink
fix(types): correct for nodeNext
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Apr 22, 2024
1 parent aacba77 commit 287efab
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .changeset/soft-geese-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"barnard59-shacl": patch
"barnard59-env": patch
---

Accurate imports to work with `moduleResolution=NodeNext`
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/env/lib/Constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Literal, DataFactory } from '@rdfjs/types'
import type { Environment } from '@rdfjs/environment/Environment.js'
import type { NsBuildersFactory } from '@tpluscode/rdf-ns-builders/Factory.js'
import type NsBuildersFactory from '@tpluscode/rdf-ns-builders'

export default class ConstantsFactory {
FALSE!: Literal
Expand Down
2 changes: 1 addition & 1 deletion packages/env/lib/Namespaces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NsBuildersFactory } from '@tpluscode/rdf-ns-builders/Factory.js'
import type NsBuildersFactory from '@tpluscode/rdf-ns-builders'
import type { Environment } from '@rdfjs/environment/Environment.js'
import type { NamespaceFactory } from '@rdfjs/namespace/Factory.js'
import * as Builders from '@zazuko/vocabulary-extras-builders'
Expand Down
4 changes: 2 additions & 2 deletions packages/shacl/lib/errors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @param {import('rdf-validate-shacl/src/validation-report').ValidationReport} report
* @param {import('rdf-validate-shacl/src/validation-report.js').ValidationReport} report
*/
function buildErrorMessage(report) {
return JSON.stringify(report.results.map(x => {
Expand All @@ -23,7 +23,7 @@ function buildErrorMessage(report) {

export class ValidationError extends Error {
/**
* @param {import('rdf-validate-shacl/src/validation-report').ValidationReport} report
* @param {import('rdf-validate-shacl/src/validation-report.js').ValidationReport} report
* @param {import('@rdfjs/types').DatasetCore} shapesGraph
* @param {import('@rdfjs/types').DatasetCore} dataGraph
*/
Expand Down

0 comments on commit 287efab

Please sign in to comment.