Illust
MarketplaceGlobal Art MapBlogTwitter
  • Illust.space
  • .github
    • pull_request_template
  • docs
    • Illust Dev Docs
    • Packages
    • process
    • dev-workflow
      • Deployment
      • Development process
      • Visual Studio Code
    • libraries
      • Storybook
      • Act
      • Aframe
      • Chakra UI
      • Cypress
      • Hosting
      • React Three Fiber
        • Shadows
      • Firebase
        • Firestore
      • zustand
      • Firebase Url Shotener
    • Flows
      • User Sign In
      • Aframe AR Map
  • packages
    • Illust API
    • Illust Marketplace
    • Migrate DB
    • scraper
    • Illust Shared
    • Illust WebAR Discovery App
  • Illust Code Style Guide
    • JavaScript/TypeScript
    • Code Orgainzation
    • React
    • Testing
  • Knowledge Base
    • React
      • Hooks
Powered by GitBook
On this page

Was this helpful?

  1. packages

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";
PreviousscraperNextIllust WebAR Discovery App

Last updated 3 years ago

Was this helpful?