import{respondWithGraphqlSchema as d}from"./tool-helpers.js";import{printTypeOrField as y,printTypeOrFieldWithReferences as f}from"./utils.js";const l=(n,p)=>d(n.name,p,({name:r,schema:t})=>{const{type:e,includeReferencedTypes:i}=n;if(i){const{sdl:o,referencedCount:c}=f(t,e);return`# Schema: ${r}
# Type: ${e} (+ ${c} referenced types)

${o}`}return`# Schema: ${r}
# Type: ${e}

${y(t,e)}`});var m={"get-graphql-type":l};export{m as default};
