mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
350e2ac38f
Upgrade to Ace v1.4.5 GitOrigin-RevId: 7ab7ba24c0bfc927567fbd4196e05a1c3f26d283
47 lines
No EOL
1.1 KiB
JavaScript
47 lines
No EOL
1.1 KiB
JavaScript
ace.define("ace/snippets/graphqlschema",[], function(require, exports, module) {
|
|
"use strict";
|
|
|
|
exports.snippetText = "# Type Snippet\n\
|
|
trigger type\n\
|
|
snippet type\n\
|
|
type ${1:type_name} {\n\
|
|
${2:type_siblings}\n\
|
|
}\n\
|
|
\n\
|
|
# Input Snippet\n\
|
|
trigger input\n\
|
|
snippet input\n\
|
|
input ${1:input_name} {\n\
|
|
${2:input_siblings}\n\
|
|
}\n\
|
|
\n\
|
|
# Interface Snippet\n\
|
|
trigger interface\n\
|
|
snippet interface\n\
|
|
interface ${1:interface_name} {\n\
|
|
${2:interface_siblings}\n\
|
|
}\n\
|
|
\n\
|
|
# Interface Snippet\n\
|
|
trigger union\n\
|
|
snippet union\n\
|
|
union ${1:union_name} = ${2:type} | ${3: type}\n\
|
|
\n\
|
|
# Enum Snippet\n\
|
|
trigger enum\n\
|
|
snippet enum\n\
|
|
enum ${1:enum_name} {\n\
|
|
${2:enum_siblings}\n\
|
|
}\n\
|
|
";
|
|
exports.scope = "graphqlschema";
|
|
|
|
});
|
|
(function() {
|
|
ace.require(["ace/snippets/graphqlschema"], function(m) {
|
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
module.exports = m;
|
|
}
|
|
});
|
|
})();
|
|
|