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
- Host: GitHub
- URL: https://github.com/openmindlab/fluent-dts
- Owner: openmindlab
- License: mit
- Created: 2022-09-03T05:29:15.000Z (almost 4 years ago)
- Default Branch: develop
- Last Pushed: 2023-10-25T07:12:05.000Z (over 2 years ago)
- Last Synced: 2025-10-01T16:33:25.132Z (9 months ago)
- Language: JavaScript
- Size: 4.68 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:

Screenshot of vscode documentation on hover:

## License
Released under the MIT license.