ts-expose-internals
Advanced tools
Comparing version 4.0.0-beta to 4.0.2
@@ -5,3 +5,3 @@ { | ||
"description": "Augment the TypeScript compiler module's types to expose hidden internal types", | ||
"version": "4.0.0-beta", | ||
"version": "4.0.2", | ||
"license": "MIT", | ||
@@ -18,3 +18,5 @@ "types": "index.d.ts", | ||
"files": [ | ||
"index.d.ts" | ||
"index.d.ts", | ||
"README.md", | ||
"typescript.d.ts" | ||
], | ||
@@ -21,0 +23,0 @@ "keywords": [ |
@@ -1,2 +0,1 @@ | ||
[![Used By](https://img.shields.io/sourcegraph/rrc/github.com/nonara/ts-expose-internals)](https://www.npmjs.com/package/ts-expose-internals) | ||
[![License](https://img.shields.io/npm/l/ts-expose-internals)](https://opensource.org/licenses/MIT) | ||
@@ -12,19 +11,25 @@ | ||
{ | ||
"devDependencies": { | ||
"typescript": "^3.9.6", | ||
"ts-expose-internals": "^3.9.6" | ||
} | ||
} | ||
```jsonc | ||
{ | ||
"devDependencies": { | ||
"typescript": "^3.9.6", | ||
"ts-expose-internals": "^3.9.6" | ||
} | ||
} | ||
``` | ||
2. Run `npm install` (for yarn: `yarn install`) | ||
3. Import the package once in your main index.ts | ||
3. Add the following line to your main index.ts | ||
import 'ts-expose-internals' | ||
```ts | ||
import {} from 'ts-expose-internals' | ||
``` | ||
_Note:_ | ||
_Notes:_ | ||
_You can add this import line in any `.ts` file that is included in your project. | ||
It only needs to be added to one file in the project for the types to be recognized._ | ||
- 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 | ||
@@ -31,0 +36,0 @@ ## Usage |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1045575
4
17017
1
62
1