私がタイプを持っているとすると:
type NewsMessage(identifier:string, headline:string)
そしてこの記録:
type NewsMessageParams = {
identifier:string
headline:string
}
レコードをクラスコンストラクターに適応させる暗黙の方法はありますか?
そのようなもの:
let newsMessageParmas = {identifier=""; headline=""}
new NewsMessage(newsMessageParams) //this is where i need help
||>
構文を使用してタプルでこれを行うことができます。これをレコードでやりたいと思います。