sugoidogo 0947358237
/ publish (push) Successful in 22s
fix typo
2026-02-09 06:55:37 -08:00
2026-02-09 06:54:14 -08:00
2026-02-09 06:54:14 -08:00
2026-02-09 06:54:14 -08:00
2026-02-09 06:54:14 -08:00
2026-02-09 06:54:14 -08:00
2026-02-09 06:54:14 -08:00
2026-02-09 06:54:14 -08:00
2026-02-09 06:55:37 -08:00
2026-02-09 06:54:14 -08:00

Importable Types Web

This is a slimmed down and repackaged version of @types/web, allowing you to selectively import web types for type checking, for example when building a cross-runtime library, implementing web APIs in node, etc.

This serves as a replacement for @types/web for any typescript code that needs to run in a non-web environment using web types, you should not use @types/web and this package together.

Usage

Configure your typescript compiler like so:

// tsconfig.json
{
    "compilerOptions":{
        "lib":["ESNext"], // exclude default web types
        "types":[] // exclude @types/web
    }
}

Then import the types and define the globals you will be using:

// main.ts
import type { Console } from "@sugoidogo/importable-types-web"

declare var console:Console

console.log("Hello World!")
S
Description
No description provided
Readme 738 KiB
Languages
TypeScript 100%