Illust Shared

Types and utils shared across projects the monorepo packages.

Importing

To import these files into another package, add it to the .tsconfig for that package:

// tsconfig.json
{
  "extends": "../../tsconfig.json",
  "include": ["src", "../shared"],
  "compilerOptions": {
    "baseUrl": "src",
    "paths": {
      "@shared/*": ["../../shared/*"],
      "~/*": ["./*"]
    }
  }
}

Then import them from @shared/path/to/file

import { Bid } from "@shared/Bid";

Last updated