-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into do-sails-js
- Loading branch information
Showing
5 changed files
with
82 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
type {{{lookup @root/type_names id}}} = record { | ||
type {{{lookup @root/type_names id}}} = struct { | ||
{{#each fields}} | ||
{{#if name}}{{name}}: {{/if}}{{{lookup @root/type_names type}}}; | ||
{{#if name}}{{name}}: {{/if}}{{{lookup @root/type_names type}}}, | ||
{{/each}} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
type {{{lookup @root/type_names id}}} = variant { | ||
type {{{lookup @root/type_names id}}} = enum { | ||
{{#each variants}} | ||
{{name}} | ||
{{~#if fields.[1]}}: record { {{#each fields~}} {{#if @index}}; {{/if}}{{#if name}}{{name}}: {{/if}}{{{lookup @root/type_names type}}}{{/each}} } | ||
{{~#if fields.[1]}}: struct { {{#each fields~}} {{#if @index}}, {{/if}}{{#if name}}{{name}}: {{/if}}{{{lookup @root/type_names type}}}{{/each}} } | ||
{{~else}} | ||
{{~#if fields.[0]}}: {{{lookup @root/type_names fields.[0].type}}} | ||
{{~/if}} | ||
{{/if~}} | ||
; | ||
, | ||
{{/each}} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters