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.4.3 to 4.4.4

2

package.json

@@ -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

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