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

Remove generic parameters from DataFactory#fromTerm() overloads #57

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shy-buckets-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rdfjs/types": patch
---

Remove generic parameters from `DataFactory#fromTerm()` overloads which caused incompatibility with `@rdfjs/types` v1
13 changes: 6 additions & 7 deletions data-model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,12 @@ export interface DataFactory<OutQuad extends BaseQuad = Quad, InQuad extends Bas
* @return A new instance of the term such that newTermInstance.equals(original) returns true.
* @see Term
*/
fromTerm<T extends NamedNode>(original: T): NamedNode;
fromTerm<T extends BlankNode>(original: T): BlankNode;
fromTerm<T extends Literal>(original: T): Literal;
fromTerm<T extends Variable>(original: T): Variable;
fromTerm<T extends DefaultGraph>(original: T): DefaultGraph;
fromTerm<T extends BaseQuad>(original: T): OutQuad;
fromTerm<T extends Term>(original: T): T;
fromTerm(original: NamedNode): NamedNode;
fromTerm(original: BlankNode): BlankNode;
fromTerm(original: Literal): Literal;
fromTerm(original: Variable): Variable;
fromTerm(original: DefaultGraph): DefaultGraph;
fromTerm(original: BaseQuad): OutQuad;

/**
* @param original The original quad.
Expand Down
Loading