Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

TypeScript validity #2

Open
cjayyy opened this issue Jan 25, 2019 · 1 comment
Open

TypeScript validity #2

cjayyy opened this issue Jan 25, 2019 · 1 comment

Comments

@cjayyy
Copy link

cjayyy commented Jan 25, 2019

When importing import getCatalog from "@catalogs"; in _app.tsx TSlint shouts "Cannot find module '@Catalogs'."

Is there a way how to import catalogs more explicitly so there is no problem within checks?

@revskill10
Copy link

revskill10 commented Mar 11, 2019

@cjayyy You can try this in your typings/index.d.ts :

declare module "@catalogs" {
  const content: any;
  export default content;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants