ts-nameof
graphql-let
ts-nameof | graphql-let | |
---|---|---|
1 | 3 | |
489 | 456 | |
- | - | |
0.0 | 3.2 | |
about 1 year ago | 10 days ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ts-nameof
-
Creating an axios service wrapper (in Vue)
// src/services/lps/SynonymGroupApiService.ts import type { SynonymGroup } from '@/shared/models/entities/Synonym'; import type { Pageable, Sort } from '@/shared/requests/Pageable'; import type { Search } from '@/shared/requests/Search'; import type { Page } from '@/shared/responses/Page'; import { ServiceCacher } from '../ServiceCacher'; import { AbstractLpsApiService } from './LpsApiService'; export interface SynonymGroupFilter extends Search, Pageable, Sort {} class SynonymGroupApiService extends AbstractLpsApiService { public constructor(lpsPortalUrl: string) { super('/synonym-groups', lpsPortalUrl); } public findAllPaged({ search }: SynonymGroupFilter = {}): Promise> { return this.http.get('', { params: { search } }) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } public findById(id: number): Promise { return this.http.get(`/${id}`) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } public create(content: SynonymGroup): Promise { return this.http.post('', content) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } public update(id: number, content: SynonymGroup): Promise { return this.http.put(`/${id}`, content) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } public delete(id: number): Promise { return this.http.delete(`/${id}`) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } } const serviceCacher: ServiceCacher = new ServiceCacher( nameof(), // https://github.com/dsherret/ts-nameof SynonymGroupApiService ); export function synonymGroupApiService(baseUrl: string): SynonymGroupApiService { return serviceCacher.instance(baseUrl); }
graphql-let
-
How to generate Typescript types for GraphQL queries in a React app
Under the hood, @lente/vite-plugin-graphql uses graphql-let, and .graphql-let.yml is where we define where the GraphQL schema is located and how to identify the GraphQL files to be parsed. Check out this repo for more details on the options available https://github.com/piglovesyou/graphql-let.
-
graphql-let - A Webpack loader for GraphQL Code Generator
graphql-let is a wrapper tool that makes using GraphQL Code Generator smoother and easier. In this article, I'll explain what graphql-let is and how it relates to GraphQL Code Generator.
-
Question: Any tools for generating strongly-typed query and mutation builders?
I think all the tools you and /u/catterpillars_dreams need are there. You just need a combination of graphql-code-generator, ESLint, and editor plugins. Maybe you could contribute to the graphql-let project, which attempts to make it easier to set everything up.
What are some alternatives?
ttypescript - Over TypeScript tool to use custom transformers in the tsconfig.json
graphql-zeus - GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native ( apollo compatible )
compiled-css-in-js - A familiar and performant compile time CSS-in-JS library for React. [Moved to: https://github.com/atlassian-labs/compiled]
graphql-typed-document-node - An improved version of `DocumentNode` for seamless TypeScript integration for GraphQL.
nornj - More exciting JS/JSX based on Template Engine, support control flow tags, custom directives, two-way binding, filters and custom operators.
graphql-codegen-flutter-artemis-hooks - graphql-codegen plugin to generate type-safe, easy-to use hooks for Flutter
ts-loader - TypeScript loader for webpack
graphql-codegen-vscode - vscode extension which runs graphql-codegen whenever you save a query/mutation
Next.js - The React Framework
react-starter-kit - The web's most popular Jamstack front-end template (boilerplate) for building web applications with React
vscode-apollo-relay - Simple configuration of vscode-apollo for Relay projects.
nodejs-api-starter - 💥 Yarn v2 based monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI. [Moved to: https://github.com/kriasoft/relay-starter-kit]