Skip to content

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

License

Notifications You must be signed in to change notification settings

openmindlab/fluent-dts

Repository files navigation

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:

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

Screenshot of vscode documentation on hover:

documentation

License

Released under the MIT license.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published