~/talk

ScalaJS and Typescript: an unlikely romance

Talkat Scala Days Lausanne 2019 · 2019-06-11..06-13· [typescript, scala]
links:none on file
slides:none on file

Claims that generating TypeScript declaration files from Scala.js source and emulating nominal types with phantom nominal tags removes DTS misrepresentations and the structural/nominal mismatch. Implements an sbt plugin proof‑of‑concept that emits interfaces, class constructors, unions, and newtypes for consumption by TypeScript; uses shapeless and generated tag fields to force nominal checks. Works on a real client/server project but currently yields read‑only APIs, lacks generic constraints and full variance, and needs a two‑pass or compiler‑integration future.

AI-written summary · about

  1. 0:00Start
  2. 1:15Features of Typescript
  3. 3:03Conditional Types
  4. 3:39Conditional Types
  5. 5:12Map Types
  6. 17:21We Emulate Nominal Types in Our Dts Definitions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.