Fix type signature.

This commit is contained in:
Dillon Kearns 2021-06-03 18:15:34 -07:00
parent 605b353065
commit 2c872c18fc
2 changed files with 7 additions and 2 deletions

View File

@ -94,6 +94,7 @@ config =
, "src/Pages/Internal/Platform.elm"
, "src/Pages/Internal/Platform/Cli.elm"
, "src/SecretsDict.elm"
, "src/StructuredData.elm"
, "src/Router.elm" -- used in generated code
]
|> Rule.ignoreErrorsForDirectories

View File

@ -134,10 +134,14 @@ encode (StructuredData typeName fields) =
--example : StructuredDataHelper { personOrOrganization : () } { address : (), affiliation : () }
--example :
-- StructuredData
-- { personOrOrganization : () }
-- { address : ()
-- , affiliation : ()
-- }
example : StructuredData { personOrOrganization : () } { additionalName : (), address : (), affiliation : () }
example =
person { name = "Dillon Kearns" }
|> additionalName "Cornelius"