import{o as e}from"./chunk-6hGRweTZ.js";import{t}from"./codemirror-mxAyinHX.js";import{t as n}from"./esm-MZoV4-G5.js";var r=e(t()),i=[`error`,`warning`,`information`,`hint`],a={"GraphQL: Validation":`validation`,"GraphQL: Deprecation":`deprecation`,"GraphQL: Syntax":`syntax`};r.default.registerHelper(`lint`,`graphql`,(e,t)=>{let{schema:o,validationRules:s,externalFragments:c}=t;return n(e,o,s,void 0,c).map(e=>({message:e.message,severity:e.severity?i[e.severity-1]:i[0],type:e.source?a[e.source]:void 0,from:r.default.Pos(e.range.start.line,e.range.start.character),to:r.default.Pos(e.range.end.line,e.range.end.character)}))});
//# sourceMappingURL=lint-BIR0eP__.js.map