Coder Social home page Coder Social logo

types's Introduction

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.

types's People

Contributors

tpluscode avatar rubensworks avatar blake-regalia avatar jacoscaz avatar laurensrietveld avatar github-actions[bot] avatar thewilkybarkid avatar elf-pavlik avatar thisismissem avatar jablko avatar jeswr avatar larsrh avatar sandersn avatar flyon avatar vinnl avatar weswigham avatar dependabot[bot] avatar jaxoncreed avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.