@comunica/types
Version:
Typings module for Comunica
30 lines (18 loc) • 916 B
Markdown
[](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/).
[](https://comunica.dev/docs/query/).
```bash
$ yarn add @comunica/types
```
```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).