graphql-tools
                                
                                
                                
                                    graphql-tools copied to clipboard
                            
                            
                            
                        Export `DirectableGraphQLObject` type
Is your feature request related to a problem? Please describe.
I am working on a GraphQL library that works extensively with directives. I would like to write a wrapper function that calls getDirective. I'd like my wrapper function to take in a DirectableGraphQLObject.
Describe the solution you'd like
Export DirectableGraphQLObject, located here.
Describe alternatives you've considered
- Copy and pasting the 
DirectableGraphQLObjectinto my codebase. This is less ideal since it results in duplicate code. - Adding a type assertion. This is prone to breakage since I cannot be sure the passed in type is correct.
 - Using a utility type to extract the type (e.g., 
Parameters<typeof getDirective>[1]). This is likely the best workaround for now. 
Additional context
None.
Sounds good! Would you create a PR?
Sure: https://github.com/ardatan/graphql-tools/pull/5444. Seemed straightforward. LMK if more is required.
Thanks for the PR! Available in the latest version!