Socket
Socket
Sign inDemoInstall

ts-expose-internals

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-expose-internals - npm Package Compare versions

Comparing version 4.0.0-beta to 4.0.0-rc

typescript.d.ts

6

package.json

@@ -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.0-rc",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc