import { PluginInterface } from 'relay-compiler/lib/language/RelayLanguagePluginInterface' ; import typescriptPlugin from 'relay-compiler-language-typescript' ; import { createFinder } from './FindGraphQLTags' ; export default function plugin ( ) { const tsPlugin = typescriptPlugin ( ) ; return { inputExtensions : [ 'svelte' , 'ts' , 'tsx' ] , outputExtension : 'ts' , findGraphQLTags : createFinder ( tsPlugin . findGraphQLTags ) , formatModule : tsPlugin . formatModule , typeGenerator : tsPlugin . typeGenerator } ; }