UNPKG

@comunica/types

Version:

Typings module for Comunica

30 lines (18 loc) 916 B
# Comunica Types [![npm version](https://badge.fury.io/js/%40comunica%2Ftypes.svg)](https://www.npmjs.com/package/@comunica/types) A collection of reusable Comunica Typescript interfaces and types. This module is part of the [Comunica framework](https://github.com/comunica/comunica), and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/). [Click here if you just want to query with Comunica](https://comunica.dev/docs/query/). ## Install ```bash $ yarn add @comunica/types ``` ## Usage ```typescript import { Bindings } from '@comunica/types'; import { BindingsFactory } from '@comunica/utils-bindings-factory'; // ... const bindings: Bindings = BindingsFactory.bindings({ '?var': dataFactory.literal('abc') }); ``` All types are available in [`index.ts`](https://github.com/comunica/comunica/blob/master/packages/context-entries/index.ts).