mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-26 13:21:42 +03:00
Fix type signature.
This commit is contained in:
parent
605b353065
commit
2c872c18fc
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user