From 5a583b2fbec769613b00fb18e12ca909f823ed6a Mon Sep 17 00:00:00 2001 From: reda <47112551+redabacha@users.noreply.github.com> Date: Wed, 3 Apr 2024 10:56:20 +0100 Subject: [PATCH] chore: add module doc for Promise.withResolvers polyfill --- promise-with-resolvers-polyfill.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/promise-with-resolvers-polyfill.ts b/promise-with-resolvers-polyfill.ts index 5ef6d90..a6dce39 100644 --- a/promise-with-resolvers-polyfill.ts +++ b/promise-with-resolvers-polyfill.ts @@ -1,3 +1,9 @@ +/** + * @module + * + * A polyfill for Promise.withResolvers. To use, import at the entrypoint of your application. + */ + if (!Promise["withResolvers"]) { Promise["withResolvers"] = function withResolvers() { let promiseResolve: PromiseWithResolvers["resolve"];