An open API service indexing awesome lists of open source software.

https://github.com/openmindlab/fluent-dts

Ready to use typescript definitions for Fluent Commerce Graphql schema, generated using graphql-codegen
https://github.com/openmindlab/fluent-dts

Last synced: 5 months ago
JSON representation

Ready to use typescript definitions for Fluent Commerce Graphql schema, generated using graphql-codegen

Awesome Lists containing this project

README

          

# Fluent commerce type definitions

Ready to use typescript definitions for Fluent Commerce Graphql schema, generated using graphql-codegen.

## Install

```
npm install --save-dev fluent-dts
```

## Usage

The package simply contains type definitions for Fluent types. "Query" and "Mutation" are the root types that you can use for the result returned by a graphql call:

``` typescript
import fluent from 'fluent-dts';

// root types for queries or mutations
let queryresult: fluent.Query;
let mutationresult: fluent.Mutation;

```

Screenshot of vscode autocomplete:

![autocomplete support](https://raw.githubusercontent.com/openmindlab/fluent-dts/master/resources/autocomplete.png)

Screenshot of vscode documentation on hover:

![documentation](https://raw.githubusercontent.com/openmindlab/fluent-dts/master/resources/doc.png)

## License

Released under the MIT license.