Skip to content

Commit

Permalink
Merge pull request #36 from TessavWalstijn/master
Browse files Browse the repository at this point in the history
Added type to export
  • Loading branch information
tpluscode authored Dec 5, 2024
2 parents 66afd0e + f64ff10 commit d66a6e6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-icons-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rdfjs/types": major
---

In some cases, loaders would report an error similar to `Could not resolve "./data-model"`. This is fixed by using `export type *` but requires [TypeScript 5+](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#support-for-export-type-)
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="node" />

export * from './data-model';
export * from './stream';
export * from './dataset';
export * from './query';
export type * from './data-model';
export type * from './stream';
export type * from './dataset';
export type * from './query';
10 changes: 5 additions & 5 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"eslint": "^7.12.0",
"typescript": "^4.0.3"
"typescript": "^5.7.2"
},
"bugs": {
"email": "[email protected]",
Expand Down

0 comments on commit d66a6e6

Please sign in to comment.