~/talk

Vue.js and TypeScript: Working Together like Peanut Butter & Jelly

Talkat Developer Summit 2020 · 2020-11-21..11-22· [typescript, vue]
slides:none on file

Shows a step-by-step Vue CLI app scaffold that turns on TypeScript, adds Vuetify, and proves integration techniques: install @types or use DefinitelyTyped, handwrite .d.ts for lodash random, rename a JS plugin to .ts and run tsc --declaration to generate typings for a parallax plugin, and cast refs via a declared interface so VForm.validate compiles. Notes component-to-component prop types still slip through (JS runs fine). Vue CLI, DefinitelyTyped, tsc --declaration

AI-written summary · about

  1. 0:00Introduction to Vue and TypeScript
  2. 3:34Scaffolding a Vue app
  3. 6:25What is TypeScript?
  4. 13:48TypeScript in Vue apps
  5. 18:23Integrating Vuetify with TypeScript
  6. 22:47Building a counter component
  7. 27:07Adding more components
  8. 30:03TypeScript and form validation
  9. 31:46Handling external libraries
  10. 37:14Adding parallax effects
  11. 42:44TypeScript strategies summary
  12. 45:12When to avoid TypeScript
~/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.