Rob Richardson

Vuejs and TypeScript- Working Together like Peanut Butter and Jelly

What do you do when your favorite JavaScript library lacks TypeScript support? Learn a practical methodology for adding type safety to any dependency.

Vuejs and TypeScript- Working Together like Peanut Butter and Jelly
#1about 4 minutes

Understanding Vue.js and its place among modern SPA frameworks

Vue.js is a developer-friendly SPA framework that compares favorably with React and Angular through its component-based architecture and single-file components.

#2about 8 minutes

How TypeScript improves code quality with optional type hints

TypeScript acts as a superset of JavaScript, adding optional type hints at design time to help developers catch errors and understand function signatures faster.

#3about 6 minutes

Setting up a Vue project with TypeScript and Vuetify

A new Vue project can be configured with TypeScript support using the Vue CLI, but integrating a JavaScript library like Vuetify requires adding its type definitions.

#4about 7 minutes

Using type casting to fix issues with component refs

When TypeScript doesn't know the type of a component reference, you can use the `as` keyword to cast it to a specific interface, enabling type-safe method calls.

#5about 6 minutes

Creating custom type declarations for JavaScript libraries

For libraries without built-in types, you can create a custom `.d.ts` file to declare the module and its functions, or preferably install an existing `@types` package from DefinitelyTyped.

#6about 5 minutes

Generating a declaration file from existing JavaScript source

The TypeScript compiler can automatically generate a basic declaration file from a JavaScript file using the `--declaration` flag, providing a starting point for manual refinement.

#7about 4 minutes

A ranked summary of strategies for JS library integration

A prioritized list of techniques for using JavaScript libraries includes using built-in types, installing from DefinitelyTyped, crafting custom declarations, and using casting as a last resort.

#8about 2 minutes

Deciding when to use or avoid TypeScript in Vue

TypeScript is ideal for long-lived projects with team communication needs but may be counterproductive if the project relies heavily on JS libraries without type definitions.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
TL
Thomas Limbüchler
What is TypeScript?
Since Angular 2 at the latest, TypeScript has been known to many. But what exactly can you do with it, and is it worth changing?Anyone who has worked with programming languages ​​such as Java or C# before will have noticed that JavaScript allows a su...
What is TypeScript?
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
LM
Luis Minvielle
The Best Upcoming IT Webinars
Now that you already know what IT webinars are and how they can help you level up your professional appeal, you might want actually to get into one. Live tech webinars are one of the best ways to stay on top of the latest trends and tools because eit...
The Best Upcoming IT Webinars

From learning to earning

Jobs that call for the skills explored in this talk.