bind
Generated APIs for async data flows in React with a strong emphasis on type safety
Last updated 5 years ago by garbles .
MIT · Repository · Original npm · Tarball · package.json
$ npm install bind 
SYNC missed versions from official npm registry.

Install

yarn add bind

Setup

Create a .bindrc or bind.config.js that exports the following options

graphql.schema: string

Relative path or URL to GraphQL schema (default: "./schema.graphql")

graphql.output: string

Relative path of output schema declaration file (default: "./schema.d.ts")

graphql.files: string

Glob for GraphQL files to compile (default: "**/*.graphql")

graphql.print: boolean

Do not write schema file, and instead print the result (default: false)

Use

Use bind/graphql-webpack-loader as your Webpack loader for GraphQL files.

Use bind/graphql-jest-transform as your Jest transform for GraphQL files.

Run yarn bind:graphql to create type definitions for all GraphQL files.

Import .graphql files directly into your TypeScript file.

Generated code

TODO?

Current Tags

  • 0.1.7                                ...           latest (12 years ago)
  • 1.0.0-1                                ...           next (5 years ago)

10 Versions

  • 1.0.0-1                                ...           5 years ago
  • 1.0.0-0                                ...           5 years ago
  • 0.1.7 [deprecated]           ...           12 years ago
  • 0.1.6                                ...           12 years ago
  • 0.1.5                                ...           13 years ago
  • 0.1.4                                ...           13 years ago
  • 0.1.3                                ...           13 years ago
  • 0.1.2                                ...           13 years ago
  • 0.1.1                                ...           14 years ago
  • 0.1.0                                ...           14 years ago
Maintainers (1)
Downloads
Total 8
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (31)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE