Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

bun-types 0.1.10

Install from the command line:
Learn more about npm packages
$ npm install @oven-sh/bun-types@0.1.10
Install via package.json:
"@oven-sh/bun-types": "0.1.10"

About this version

Bun TypeScript type definitions

Logo

These are the type definitions for Bun's JavaScript runtime APIs.

Installation

Install the bun-types npm package:

# yarn/npm/pnpm work too, "bun-types" is an ordinary npm package
bun add bun-types

Usage

Add this to your tsconfig.json or jsconfig.json:

{
  "compilerOptions": {
    "lib": ["ESNext"],
    "module": "esnext",
    "target": "esnext",
    // "bun-types" is the important part
    "types": ["bun-types"]
  }
}

Contributing

bun-types is generated via ./bundle.ts.

Adding a new file

  1. Add it to ./index.d.ts

How to generate types.d.ts

./bundle.ts merges the types in this folder into a single file.

To run it:

bun generate:package

Generated docs

📚 See here for docs

Details


Assets

  • bun-types-0.1.10.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all