Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bun-types

Package Overview
Dependencies
Maintainers
3
Versions
688
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-types - npm Package Compare versions

Comparing version 0.6.0-canary.20230415T004546 to 0.6.0-canary.20230426T215435

tsconfig.json

5

package.json
{
"name": "bun-types",
"version": "0.6.0-canary.20230415T004546",
"version": "0.6.0-canary.20230426T215435",
"description": "Type definitions for Bun, an incredibly fast JavaScript runtime",

@@ -8,3 +8,4 @@ "types": "types.d.ts",

"types.d.ts",
"README.md"
"README.md",
"tsconfig.json"
],

@@ -11,0 +12,0 @@ "private": false,

28

README.md

@@ -1,2 +0,2 @@

# Bun TypeScript type definitions
# TypeScript types for Bun

@@ -24,6 +24,6 @@ <p align="center">

{
"compilerOptions": {
// ...
+ "types": ["bun-types"]
}
+ "types": ["bun-types"],
// other options...
}

@@ -34,20 +34,14 @@ ```

`bun-types` is generated via [./bundle.ts](./scripts/bundle.ts).
`bun-types` is generated via [./scripts/bundle.ts](./scripts/bundle.ts).
## Adding a new file
To add a new file, add it under `packages/bun-types`. Then add a [triple-slash directive](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html) pointing to it inside [./index.d.ts](./index.d.ts).
1. Add it to [./index.d.ts](./index.d.ts)
```diff
+ /// <reference path="./newfile.d.ts" />
```
## How to generate types.d.ts
[`./bundle.ts`](./bundle.ts) merges the types in this folder into a single file. To run it:
[`./bundle.ts`](./bundle.ts) merges the types in this folder into a single file.
To run it:
```bash
bun build
```
# Generated docs
**[📚 See here for docs](https://oven-sh.github.io/bun-types/)**

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