-
Notifications
You must be signed in to change notification settings - Fork 146
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
Type definition errors #369
Comments
#363 should fix this, includes many types. I'll modify the |
Make sure that it's |
Gotcha! |
When installing rdflib v1.0.6 in a typescript project and writing
Since the @types/rdflib was deprecated, the available options are to declare the module manually (no types) or install Are there any other solutions available at the moment? |
@mrkvon They shouldn't have been deprecated yet, see DefinitelyTyped/DefinitelyTyped#42044 You can either attempt to install an earlier version of those type definitions, wait until my PR at DT has been accepted, or use the prerelease version of rdflib ( |
is this fixed yet? |
@ludwigschubi yes, this should have been fixed - the release with TS support was 1.0.7 IIRC. I guess it's probably better for you to report a separate bug that can focus wholly on your issue - I'll close this one. |
This is still a problem if your TS project has "noImplicitAny=true", because plain js files (e.g. query.js) do not get transpiled to .d.ts . |
Hello, I am trying to use rdflib (version 2.2.32) with Typescript, and I cannot get it to work. On the other hand, VS Code Intellisense does recognize rdf reference, and points to index.d.ts when I "go to definition"
I tried setting "noImplicitAny" to 'false' in tsconfig.json, but it didn't solve the issue. Apologies in advance if I am missing the obvious... |
Since #356, rdflib ships a TypeScript type defintion file
index.d.ts
that refers to other files in the same directory (i.e. it contains statements likeimport BlankNode from './blank-node'; import Collection from './collection'; // etc.
), but those files are not generated. This results in TypeScript compilation errors for downstream projects:/cc @joepio
The text was updated successfully, but these errors were encountered: