import{a as e}from"./chunk-D9Tnb9aB.js";import{t}from"./codemirror-DtW92bSi.js";import{t as n}from"./esm-Cwe9HyTf.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-d1hwRe3t.js.map