Tag: typescript

TypeScript 4.4 and More Readable Code

Write more readable code with TypeScript 4.4

Dev

Control flow analysis of aliased conditions, an exciting new feature shipped with TypeScript 4.4, enables you to write more expressive, readable code.

John Reilly
Jul 21, 2021 ⋅ 2 min read
TypeScript, Abstract Classes, and Constructors

TypeScript, abstract classes, and constructors

Dev

Abstract classes in TypeScript cannot be instantiated directly; only nonabstract subclasses can be. What does this mean for constructor usage?

John Reilly
Jul 13, 2021 ⋅ 2 min read
Typescript Logo Next to Painting-Nails Emoji

Using styled-components in TypeScript: A tutorial with examples

Dev

Here, you can learn how to build and style a TypeScript app using styled-components, with an e-commerce page as an example.

Hafsah Emekoma
Jun 10, 2021 ⋅ 13 min read
How to Use TypeScript with React 18 Alpha

How to use TypeScript with React 18 alpha

Dev

React 18 alpha has just been released, which is an exciting development. But to get it working with TypeScript, you need to make a few tweaks.

John Reilly
Jun 9, 2021 ⋅ 2 min read

Using TypeScript with React Native

Dev

An introduction to using TypeScript in React Native apps, including a tutorial and example build for a mobile app

Edmund Ekott
May 17, 2021 ⋅ 7 min read
Comparing React Typescript

Comparing TypeScript and PropTypes in React applications

Dev

Understand what PropTypes and TypeScript are, consider their relevance in React applications, and discover how they can be used together.

Dillion Megida
May 14, 2021 ⋅ 5 min read
TypeScript Logo

What’s new in TypeScript 4.2

Dev

Version 4.2 of TypeScript was released in February 2021, with new features, bug fixes, and performance improvements. Find out more here.

Matthew Swensen
Apr 20, 2021 ⋅ 2 min read
GraphQL Logo

Simplify GraphQL requests with React Query, GraphQL Code Generator, and TypeScript

Dev

Take advantage of GraphQL on the frontend by automating the creation of TypeScript types and the generation of custom React Query hooks using GraphQL Code Generator.

Iva Kop
Apr 19, 2021 ⋅ 3 min read
Boost your productivity with TypeScript project references

Boost your productivity with TypeScript project references

Dev

If you have a TypeScript codebase in a monorepo that is not using TypeScript project references then you are missing out on a productivity boost.

Paul Cowan
Apr 19, 2021 ⋅ 3 min read
TypeScript Mixins

TypeScript mixins: Examples and use cases

Dev

Circumvent class constraints in TypeScript by using mixins, special classes that contain a combination of methods that can be used by other classes.

Emmanuel John
Apr 1, 2021 ⋅ 3 min read
Generating and Integrating OpenAPI Services in a React App

Generating and integrating OpenAPI services in a React app

Dev

We look at how to integrate an OpenAPI-generated service from the server, then use this generated service across a React TypeScript app.

Olasunkanmi John Ajiboye
Mar 23, 2021 ⋅ 8 min read
rust to typescript

Switching from Rust to TypeScript (and vice versa)

Dev

Avoid stress and complication when switching your application from one programming language to another by understanding dependencies, data types, and conditional statements in each.

Ukpai Ugochi
Feb 22, 2021 ⋅ 9 min read