All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elm.record.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
{{#discriminator}}
type {{classname}}
    = {{classname}} Base{{classname}}
{{#mappedModels}}    | {{classname}}{{modelName}} {{modelName}}
{{/mappedModels}}


{{/discriminator}}
type alias {{#discriminator}}Base{{/discriminator}}{{classname}} =
{{#lambda.indented}}
    { {{#parent}}{{#allOf}}{{^-first}}, {{/-first}}{{#lambda.camelcase}}{{.}}{{/lambda.camelcase}}: {{.}}
{{/allOf}}, {{/parent}}{{#vars}}{{^-first}}, {{/-first}}{{name}} : {{#isCircularReference}}{{classname}}{{nameInCamelCase}}{{/isCircularReference}}{{^isCircularReference}}{{>recordField}}{{/isCircularReference}}
{{/vars}}
}{{/lambda.indented}}{{#vars}}{{#isCircularReference}}


type {{classname}}{{nameInCamelCase}} = {{classname}}{{nameInCamelCase}} ({{>recordField}})


unwrap{{classname}}{{nameInCamelCase}} : {{classname}}{{nameInCamelCase}} -> {{>recordField}}
unwrap{{classname}}{{nameInCamelCase}} ({{classname}}{{nameInCamelCase}} {{name}}) = {{name}}{{/isCircularReference}}{{/vars}}{{#vars}}{{#isEnum}}


{{>customType}}{{/isEnum}}{{/vars}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy