Skip to content

Instantly share code, notes, and snippets.

@dabbott
Created February 16, 2019 21:33
Show Gist options
  • Save dabbott/f43de99e7e110c50cb05ce8ad43ec420 to your computer and use it in GitHub Desktop.
Save dabbott/f43de99e7e110c50cb05ce8ad43ec420 to your computer and use it in GitHub Desktop.
core.types
{
"types" : [
{
"case" : "type",
"data" : {
"cases" : [
{
"case" : "normal",
"name" : "undefined",
"params" : [
]
}
],
"name" : "Unit"
}
},
{
"case" : "type",
"data" : {
"cases" : [
{
"case" : "normal",
"name" : "false",
"params" : [
]
},
{
"case" : "normal",
"name" : "true",
"params" : [
]
}
],
"name" : "Boolean"
}
},
{
"case" : "native",
"data" : {
"name" : "Number"
}
},
{
"case" : "native",
"data" : {
"name" : "String"
}
},
{
"case" : "type",
"data" : {
"cases" : [
{
"case" : "normal",
"name" : "value",
"params" : [
{
"value" : {
"case" : "generic",
"name" : "Value"
}
}
]
},
{
"case" : "normal",
"name" : "null",
"params" : [
]
}
],
"name" : "Optional"
}
},
{
"case" : "type",
"data" : {
"cases" : [
{
"case" : "normal",
"name" : "node",
"params" : [
{
"value" : {
"case" : "generic",
"name" : "Item"
}
},
{
"value" : {
"case" : "type",
"name" : "List",
"substitutions" : [
]
}
}
]
},
{
"case" : "normal",
"name" : "empty",
"params" : [
]
}
],
"name" : "List"
}
},
{
"case" : "type",
"data" : {
"cases" : [
{
"case" : "record",
"name" : "colorsFile",
"params" : [
{
"key" : "colors",
"value" : {
"case" : "type",
"name" : "List",
"substitutions" : [
{
"generic" : "Item",
"instance" : "Color"
}
]
}
}
]
}
],
"name" : "ColorsFile"
}
},
{
"case" : "type",
"data" : {
"cases" : [
{
"case" : "record",
"name" : "color",
"params" : [
{
"key" : "id",
"value" : {
"case" : "type",
"name" : "String",
"substitutions" : [
]
}
},
{
"key" : "name",
"value" : {
"case" : "type",
"name" : "String",
"substitutions" : [
]
}
},
{
"key" : "value",
"value" : {
"case" : "type",
"name" : "String",
"substitutions" : [
]
}
},
{
"key" : "comment",
"value" : {
"case" : "type",
"name" : "Optional",
"substitutions" : [
{
"generic" : "Value",
"instance" : "String"
}
]
}
}
]
}
],
"name" : "Color"
}
},
{
"case" : "type",
"data" : {
"cases" : [
{
"case" : "record",
"name" : "parameters",
"params" : [
{
"key" : "visible",
"value" : {
"case" : "type",
"name" : "Optional",
"substitutions" : [
{
"generic" : "Value",
"instance" : "Boolean"
}
]
}
},
{
"key" : "numberOfLines",
"value" : {
"case" : "type",
"name" : "Optional",
"substitutions" : [
{
"generic" : "Value",
"instance" : "Number"
}
]
}
},
{
"key" : "flexDirection",
"value" : {
"case" : "type",
"name" : "Optional",
"substitutions" : [
{
"generic" : "Value",
"instance" : "String"
}
]
}
}
]
}
],
"name" : "Parameters"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment