Socket
Socket
Sign inDemoInstall

@rdfjs/types

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rdfjs/types

Authoritative TypeScript typings for all RDF/JS specifications


Version published
Weekly downloads
19K
decreased by-21.77%
Maintainers
1
Install size
1.67 MB
Created
Weekly downloads
 

Changelog

Source

1.1.0

Minor Changes

  • 95f1e31: Dataset: Use correct type of dataset in methods with callbacks
  • 2539ab3: Add queryable interfaces

Patch Changes

  • 8164183: Documentation Fix: Update reference of Quad to BaseQuad in the definition of Term in order to align with the type declaration.
  • a19ed91: Make queryable metadata types configurable

Readme

Source

RDF/JS Types

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.

Usage

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'

Contributing

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.

What about @types/rdf-js?

This package replaces typings previously managed in the DefinitelyTyped repository.

The old package wil be deprecated but continue to work for backwards compatibility but library maintainers are encouraged to use @rdfjs/types instead.

Keywords

FAQs

Last updated on 17 Feb 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc