Jun 9, 2020
Fence your TypeScript, for saner project boundaries
Solve the problem of dependency creep and add boundaries to your TypeScript project to limit what is exported and imported from a package.
4 min read min read
Solve the problem of dependency creep and add boundaries to your TypeScript project to limit what is exported and imported from a package.
Managing big apps have its own problems and one of them is managing imports. Typescript allows you to have path aliases which makes it easier to refer to modules. In this tutorial we will see how we can use path aliases in React Native app created using Expo and Typescript.
Typescript has a type system which provides more capabilities than the type system in C# and Java. The one that I found to be very useful is the union type
Interface in Typescript is used to tell the compiler what the shape of the JS object should look like. It is a compile time construct hence it will not have