Skip to content

yume-chan/webcodecs-lib-generator

 
 

Repository files navigation

Webcodecs lib generator

Similiar to https://github.com/dogben/TypeScript-WebCodecs-generator, this is another fork of https://github.com/microsoft/TypeScript-DOM-lib-generator to generate a d.ts for specified IDL.

First try

  1. TypeScript-DOM-lib-generator now uses @w3c/webref as source of IDLs. w3c/webref has already included webcodecs.idl.
  2. TypeScript-DOM-lib-generator then uses @mdn/browser-compat-data to filter out exporimental features (have less then two browser engines support them).

So:

  1. Only include webcodecs.idl when loading from @w3c/webref
  2. Disable @mdn/browser-compat-data to preserve it
  3. Several small tweaks to remove other non-needed types

Second try

However, webcodecs.idl from @w3c/webref is too loose for real-world use.

So it's currently still using IDLs from Chromium source code (version 95.0.4638.60).

See https://github.com/dogben/TypeScript-WebCodecs-generator/blob/master/README.md

About

Tool for generating dom related TypeScript and JavaScript library files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 88.1%
  • JavaScript 11.9%