Skip to content

Commit d66a6e6

Browse files
authored
Merge pull request #36 from TessavWalstijn/master
Added type to export
2 parents 66afd0e + f64ff10 commit d66a6e6

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.changeset/mighty-icons-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rdfjs/types": major
3+
---
4+
5+
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-)

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="node" />
22

3-
export * from './data-model';
4-
export * from './stream';
5-
export * from './dataset';
6-
export * from './query';
3+
export type * from './data-model';
4+
export type * from './stream';
5+
export type * from './dataset';
6+
export type * from './query';

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@typescript-eslint/eslint-plugin": "^4.5.0",
2525
"@typescript-eslint/parser": "^4.5.0",
2626
"eslint": "^7.12.0",
27-
"typescript": "^4.0.3"
27+
"typescript": "^5.7.2"
2828
},
2929
"bugs": {
3030
"email": "[email protected]",

0 commit comments

Comments
 (0)