Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
at main 226 B view raw
1import { maskFragments } from './graphql'; 2import { Pokemon, PokemonFields } from './fragment'; 3 4const data = { id: '1', name: 'Pikachu', fleeRate: 0.1 }; 5const x = maskFragments([PokemonFields], data); 6 7console.log(Pokemon);