From 277815439adf8e2d4aed862f9776c36f7b167ed1 Mon Sep 17 00:00:00 2001 From: deyaaeldeen Date: Wed, 16 Sep 2020 15:40:11 -0400 Subject: [PATCH] include the shim files in shipped files --- sdk/core/abort-controller/package.json | 1 + sdk/core/abort-controller/src/AbortSignal.ts | 2 +- sdk/core/abort-controller/src/shims-public.d.ts | 5 ----- 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 sdk/core/abort-controller/src/shims-public.d.ts diff --git a/sdk/core/abort-controller/package.json b/sdk/core/abort-controller/package.json index adfc22920c52..dd2933959e83 100644 --- a/sdk/core/abort-controller/package.json +++ b/sdk/core/abort-controller/package.json @@ -38,6 +38,7 @@ "files": [ "dist/", "dist-esm/src/", + "shims-public.d.ts", "types/abort-controller.d.ts", "README.md", "LICENSE" diff --git a/sdk/core/abort-controller/src/AbortSignal.ts b/sdk/core/abort-controller/src/AbortSignal.ts index 7894842ecced..4c15c3e60bc3 100644 --- a/sdk/core/abort-controller/src/AbortSignal.ts +++ b/sdk/core/abort-controller/src/AbortSignal.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. // eslint-disable-next-line @typescript-eslint/triple-slash-reference -/// +/// type AbortEventListener = (this: AbortSignalLike, ev?: any) => any; const listenersMap = new WeakMap(); diff --git a/sdk/core/abort-controller/src/shims-public.d.ts b/sdk/core/abort-controller/src/shims-public.d.ts deleted file mode 100644 index 002bec375f33..000000000000 --- a/sdk/core/abort-controller/src/shims-public.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -// forward declaration of Event in case DOM libs are not present. -interface Event {}