느릅 나무를 시험해 보면서 문제가 발생했습니다. 나는 포트를 통해 노동 조합 유형을 전달하려는하지만 난이 오류 얻을 다음과 같이 나는 도도 example을 수정 한Elm 포트를 통해 공용체 유형을 전달하는 방법은 무엇입니까?
Port `setStorage` is trying to communicate an unsupported type.
34| port setStorage : Model -> Cmd msg
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The specific unsupported type is:
Todo.Importance
The types of values that can flow through in and out of Elm include:
Ints, Floats, Bools, Strings, Maybes, Lists, Arrays,
Tuples, Json.Values, and concrete records.
:
type alias Task =
{ description : String
, completed : Bool
, editing : Bool
, id : Int
, importance : Importance
}
type Importance
= Normal
| High
| Low
issue가 나타납니다이 꽤 된 것으로한다. 한 의견 제시자는 "포트를 통해 Json.Values를 전달하고 Json.Decode/Encode"제안하지만 정확하게 수행하는 방법은 무엇입니까? 문서가 약간 불분명하고 전체 예제가 부족합니다. 어떤 도움을 주셔서 감사합니다.
이 기능은 곧 구현되지 않습니다 ... 이상이 기능은 우선 순위 목록에 방법 다운 말한다 @rtfeldman 느릅 나무 슬랙에 내년에 일어난다면 그는 놀랄 것이다. 그것은 2017 년 5 월 23 일을 기점으로했습니다. –