ts-expose-internals
Advanced tools
Comparing version 4.4.3 to 4.4.4
@@ -5,3 +5,3 @@ { | ||
"description": "Augment the TypeScript compiler module's types to expose hidden internal types", | ||
"version": "4.4.3", | ||
"version": "4.4.4", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "types": "index.d.ts", |
@@ -9,3 +9,3 @@ [![License](https://img.shields.io/npm/l/ts-expose-internals)](https://opensource.org/licenses/MIT) | ||
1. Add dependency to package.json (set version to the same as your typescript version) | ||
1. Add aliased dependency to package.json (use the same version as your typescript version) | ||
@@ -16,3 +16,4 @@ ```jsonc | ||
"typescript": "^3.9.6", | ||
"ts-expose-internals": "^3.9.6" | ||
// Note: The package is 'ts-expose-internals', but we are aliasing within the @types scope to make TS adopt it globally | ||
"@types/ts-expose-internals": "npm:ts-expose-internals@3.9.6" | ||
} | ||
@@ -24,15 +25,2 @@ } | ||
3. Add the following line to your main index.ts | ||
```ts | ||
import {} from 'ts-expose-internals' | ||
``` | ||
_Notes:_ | ||
- This line only needs to be added to one source file (it doesn't have to be main index), and the types will be | ||
recognized project-wide | ||
- We include the empty `{} from` in order to make sure it does not get output in compiled source | ||
- You might need to tell your linter to ignore the import line if it's set to flag empty imports | ||
## Usage | ||
@@ -39,0 +27,0 @@ All internal types are now available within the primary typescript module |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1154217
49