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

Commit

Permalink
Create a types/index.d.ts to import global.d.ts and add another t…
Browse files Browse the repository at this point in the history
…est scenario.

The resolution just appears we're using typeRoots incorrectly!

See comment: gustavopch/tsc-files#22 (comment)
  • Loading branch information
kylorhall committed Dec 4, 2021
1 parent cf8eb9b commit c0c3e02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import './global';
import './other';
2 changes: 2 additions & 0 deletions types/other.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/** Just assume this is some globally available variable. */
declare const OTHER_GLOBAL_TYPE = true;

0 comments on commit c0c3e02

Please sign in to comment.