bridges icon indicating copy to clipboard operation
bridges copied to clipboard

Extend Tuple support to Elm and Scala

Open davegurnell opened this issue 5 years ago • 2 comments

Version 0.18 added TsType.Tuple and FlowType.Tuple to encode tuple Typescript and Flow tuple types:

export type SpreadsheetCell = [string, number];

We can currently create these types using the DSL:

decl("SpreadsheetCell")(tuple(Str, Intr))

However, we can't yet map Scala tuples onto them using decl[T]. If we can add tuple support to Elm's model, we can write some scala.TupleX encoders using shapeless of sbt-boilerplate.

davegurnell avatar Jul 31 '19 13:07 davegurnell

I will look at it, but I can't promise when, next couple of months are a bit… :(

On 31 Jul 2019, at 14:03, Dave Gurnell [email protected] wrote:

Version 0.18 added TsType.Tuple and FlowType.Tuple to encode tuple Typescript and Flow tuple types:

export

type

SpreadsheetCell

=

[

string

,

number

];

We should extend this support to Elm and Scala!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

pvillega avatar Aug 02 '19 19:08 pvillega

No worries. I have what I need for now. This is more of an if-and-when kind of thing. A nice-to-have.

On 2 August 2019 at 20:43:13, Pere Villega ([email protected](mailto:[email protected])) wrote:

I will look at it, but I can't promise when, next couple of months are a bit… :(

On 31 Jul 2019, at 14:03, Dave Gurnell [email protected] wrote:

Version 0.18 added TsType.Tuple and FlowType.Tuple to encode tuple Typescript and Flow tuple types:

export

type

SpreadsheetCell

=

[

string

,

number

];

We should extend this support to Elm and Scala!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub(https://github.com/davegurnell/bridges/issues/24?email_source=notifications&email_token=AABYRZ76MZ76PLAVOU4IRKTQCSE5DA5CNFSM4IIGOJT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3OVOFY#issuecomment-517822231), or mute the thread(https://github.com/notifications/unsubscribe-auth/AABYRZ2DSX6MMTCQFFY3TJLQCSE5DANCNFSM4IIGOJTQ).

davegurnell avatar Aug 03 '19 19:08 davegurnell