Comments (1)
Thank you for this issue.
The type definition is welcome.
I love TypeScript.
But I'm not sure if refactoring by TS has enough profits. This project and event-target-shim that this project depends have some codes that TS cannot express. For examples:
- defineEventAttribute(proto, type) adds an instance property to the class of the
proto
. AbortSignal
's constructor must throw a TypeError always, but it can be instantiated from inside ofAbortController
implementation.
Additionally, I have a concern about class inheritance. AbortSignal
inherits EventTarget
, but people can use this package in Node.js program in JavaScript, so they might feel odd if they required lib.dom.d.ts
in order to use this package.
from abort-controller.
Related Issues (20)
- Change `ev` parameter to `Event` once TS3.4 comes out HOT 2
- not working in IE 11 because the dist files are not transpiled to ES5 HOT 5
- TypeScript support is broken HOT 1
- ES-check error HOT 3
- umdOutro causes issues with webpack+babel HOT 1
- Add extension to package.json:main HOT 1
- AbortController as part of Node.js core
- Use native AbortController when possible. HOT 1
- can't ever reset a signal once it's been aborted HOT 2
- ie is not supported for this. how could we handle this problem ? HOT 1
- Update the event-target-shim dependency
- Unable to timeout Promise.
- Browser code missing named AbortController export
- Support for AbortSignal.reason HOT 1
- Add a ponyfill export
- Support for `AbortSignal.timeout` HOT 1
- TypeScript error: "Type 'AbortSignal' is missing the following properties from type 'AbortSignal': reason, throwIfAborted" HOT 5
- controller.signal.constructor.name is invalid? HOT 3
- ModuleNotFoundError on export HOT 1
- Broken on node 18.14.2 and 19.16.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abort-controller.