ZINC-FYP-2022-23 / console

ZINC UI for teaching assistants
1 stars 0 forks source link

refactor: better import path alias #16

Closed AnsonH closed 2 years ago

AnsonH commented 2 years ago

Description

This commit introduced a new way to specify the import path:

import { Config } from "types"

In the above example, it imports from the types/ folder. However, an issue with this style of import is that it's easy to mistake "types" as the name of a 3rd party dependency

Solution

Try with this: "~/types", "~/components"