Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not pay attention to global declarations #50

Closed
adenisovgit opened this issue Jan 14, 2023 · 1 comment
Closed

Does not pay attention to global declarations #50

adenisovgit opened this issue Jan 14, 2023 · 1 comment

Comments

@adenisovgit
Copy link

main.d.ts in the ./src completely ignored by tsc-files

declare type QueryType = { [key: string]: string | number | boolean };
declare module '*.scss' {
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  const content: any;
  export default content;
}

pre-commit report:

✖ tsc-files --noEmit:
src/components/grid/simpleGrid/grid.tsx(3,20): error TS2307: Cannot find module './styles.scss' or its corresponding type declarations.
src/components/hashLinkAnchor/Anchor.tsx(3,20): error TS2307: Cannot find module './styles.scss' or its corresponding type declarations.
src/services/asyncApiFetch.ts(13,42): error TS2304: Cannot find name 'QueryType'.
src/views/customizer/settings/banner/BannerSettings/components/BannerWithImageSettings.tsx(5,20): error TS2307: Cannot find module '../../styles.scss' or its corresponding type declarations.
src/views/products/Products.tsx(23,20): error TS2307: Cannot find module './styles.scss' or its corresponding type declarations.
src/views/products/Products.tsx(37,10): error TS2304: Cannot find name 'QueryType'.
husky - pre-commit hook exited with code 1 (error)
@adenisovgit adenisovgit changed the title Don't pay attention to global declarations Does not pay attention to global declarations Jan 14, 2023
@gustavopch
Copy link
Owner

Duplicate of #20.

@gustavopch gustavopch closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants