typings-esm-loader
Advanced tools
Comparing version 1.0.0 to 1.0.1
declare module 'typings-esm-loader' { | ||
//@ts-expect-error tsserver sometimes glitches out and complains about the 'declare global', but still works fine | ||
declare global { | ||
@@ -4,0 +5,0 @@ interface Loader { |
{ | ||
"name": "typings-esm-loader", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Typings for Node.js custom ESM loaders", | ||
@@ -5,0 +5,0 @@ "type": "module", |
# ESM Loader Typings | ||
> Typings for Node.js custom ESM loaders | ||
[![license][license-image]][license-url] | ||
[![GitHub version][github-image]][github-url] | ||
[![npm release][npm-image]][npm-url] | ||
[![node-current][node-image]][node-url] | ||
Node.js custom ESM loaders need to be written in JS as they're passed directly to Node.js on startup, but that doesn't mean we can't have types on them. | ||
@@ -8,3 +13,3 @@ | ||
```sh | ||
npm i -D jhmaster2000/typings-esm-loader | ||
npm i -D typings-esm-loader | ||
``` | ||
@@ -45,1 +50,10 @@ | ||
- `Function`: structurally identical to `load` type, used to disambiguate between the user's hook (`load`) and the load function argument passed to it. | ||
[github-url]:https://github.com/jhmaster2000/typings-esm-loader | ||
[github-image]:https://img.shields.io/github/package-json/v/jhmaster2000/typings-esm-loader.svg | ||
[license-url]:https://github.com/jhmaster2000/typings-esm-loader/blob/master/LICENSE | ||
[license-image]:https://img.shields.io/npm/l/typings-esm-loader.svg | ||
[npm-url]:http://npmjs.org/package/typings-esm-loader | ||
[npm-image]:https://img.shields.io/npm/v/typings-esm-loader.svg?color=darkred&label=npm%20release | ||
[node-url]:https://nodejs.org/en/download | ||
[node-image]:https://img.shields.io/node/v/typings-esm-loader.svg |
9610
78
58