import { DeclarationKindConfig , DeclarationKind } from './types' ; export const DEFAULT_DECLARATION_KINDS = { directive : 'type' , scalar : 'type' , input : 'type' , type : 'type' , interface : 'type' , arguments : 'type' , } ; export function normalizeDeclarationKind ( declarationKind ? ) { if ( typeof declarationKind === 'string' ) { return { directive : declarationKind , scalar : declarationKind , input : declarationKind , type : declarationKind , interface : declarationKind , arguments : declarationKind , } ; } return { ... DEFAULT_DECLARATION_KINDS , ... declarationKind , } ; }