Browse Source

docs: clarify ts stuff

Sv443 3 months ago
parent
commit
f63e7223bc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README-summary.md
  2. 1 1
      README.md

+ 1 - 1
README-summary.md

@@ -163,7 +163,7 @@ Shameless plug: I made a [template for userscripts in TypeScript](https://github
 
 
 <br>
 <br>
 
 
-- If you're using TypeScript and it complains about the missing global variable `UserUtils`, install the library using the package manager of your choice and add the following inside a `.d.ts` file somewhere in the directory (or a subdirectory) defined in your `tsconfig.json`'s `baseUrl` option or `include` array:
+- If you're using TypeScript and it complains about the missing global variable `UserUtils`, install the library using the package manager of your choice and add the following inside any `.ts` file that is included in the final build:  
     ```ts
     ```ts
     declare const UserUtils: typeof import("@sv443-network/userutils");
     declare const UserUtils: typeof import("@sv443-network/userutils");
 
 

+ 1 - 1
README.md

@@ -170,7 +170,7 @@ Shameless plug: I made a [template for userscripts in TypeScript](https://github
 
 
 <br>
 <br>
 
 
-- If you're using TypeScript and it complains about the missing global variable `UserUtils`, install the library using the package manager of your choice and add the following inside a `.d.ts` file somewhere in the directory (or a subdirectory) defined in your `tsconfig.json`'s `baseUrl` option or `include` array:  
+- If you're using TypeScript and it complains about the missing global variable `UserUtils`, install the library using the package manager of your choice and add the following inside any `.ts` file that is included in the final build:  
   
   
   ```ts
   ```ts
   declare const UserUtils: typeof import("@sv443-network/userutils");
   declare const UserUtils: typeof import("@sv443-network/userutils");