1
|
ace.define("ace/snippets/graphqlschema",["require","exports","module"], function(require, exports, module) {
|
2
|
"use strict";
|
3
|
|
4
|
exports.snippetText = "# Type Snippet\n\
|
5
|
trigger type\n\
|
6
|
snippet type\n\
|
7
|
type ${1:type_name} {\n\
|
8
|
${2:type_siblings}\n\
|
9
|
}\n\
|
10
|
\n\
|
11
|
# Input Snippet\n\
|
12
|
trigger input\n\
|
13
|
snippet input\n\
|
14
|
input ${1:input_name} {\n\
|
15
|
${2:input_siblings}\n\
|
16
|
}\n\
|
17
|
\n\
|
18
|
# Interface Snippet\n\
|
19
|
trigger interface\n\
|
20
|
snippet interface\n\
|
21
|
interface ${1:interface_name} {\n\
|
22
|
${2:interface_siblings}\n\
|
23
|
}\n\
|
24
|
\n\
|
25
|
# Interface Snippet\n\
|
26
|
trigger union\n\
|
27
|
snippet union\n\
|
28
|
union ${1:union_name} = ${2:type} | ${3: type}\n\
|
29
|
\n\
|
30
|
# Enum Snippet\n\
|
31
|
trigger enum\n\
|
32
|
snippet enum\n\
|
33
|
enum ${1:enum_name} {\n\
|
34
|
${2:enum_siblings}\n\
|
35
|
}\n\
|
36
|
";
|
37
|
exports.scope = "graphqlschema";
|
38
|
|
39
|
}); (function() {
|
40
|
ace.require(["ace/snippets/graphqlschema"], function(m) {
|
41
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
42
|
module.exports = m;
|
43
|
}
|
44
|
});
|
45
|
})();
|
46
|
|