
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
@rdfjs/types
Advanced tools
Authoritative TypeScript typings for all RDF/JS specifications
The types should match the RDF/JS specifications (Data Model, Dataset and Stream). However, because they also take advantage of TypecScript-specific syntax features, some differences are inevitable. If something does not add up, please open an issue.
Installed as usual using your favourite package manager.
yarn add @rdfjs/types
This package does not provide code, only interafces for the RDF/JS specifications. Import them to strong-type your RDF/JS code.
import type { NamedNode, DatasetCore, Stream } from '@rdfjs/types'
Or import separately from type modules corresponding the specifications.
import type { NamedNode } from '@rdfjs/types/data-model'
import type { DatasetCore } from '@rdfjs/types/dataset'
import type { Stream } from '@rdfjs/types/stream'
Note that some helper types exist that do not exist within the RDF/JS specifications. These include:
import type { TripleTermName, QuadTermName } from '@rdfjs/types'
Everyone is invited to open issues and pull requests. When you create a PR, please add or update the rdf-js-tests.ts
file to reflect your changes.
You may also create a changeset file by running npx run changeset
and following the simple wizard. If you don't do that, such as in the case when editing from your browser, do not worry. A maintainer can also create it for you when you open a PR.
This package replaces typings previously managed in the DefinitelyTyped repository and a later proxy package rdf-js.
Both these old packages are deprecated. They will continue to work for backwards compatibility but library maintainers are encouraged to use @rdfjs/types
instead.
2.0.1
DataFactory#fromTerm()
overloads which caused incompatibility with @rdfjs/types
v1FAQs
Authoritative TypeScript typings for all RDF/JS specifications
The npm package @rdfjs/types receives a total of 54,699 weekly downloads. As such, @rdfjs/types popularity was classified as popular.
We found that @rdfjs/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.