From a0a847e60cdec6ec70a93da39d93a596f9afc8b0 Mon Sep 17 00:00:00 2001 From: deyaaeldeen Date: Wed, 16 Sep 2020 12:22:19 -0400 Subject: [PATCH] run api-extractor --- sdk/core/abort-controller/package.json | 2 +- sdk/core/abort-controller/review/abort-controller.api.md | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sdk/core/abort-controller/package.json b/sdk/core/abort-controller/package.json index bba6f28dbed6..adfc22920c52 100644 --- a/sdk/core/abort-controller/package.json +++ b/sdk/core/abort-controller/package.json @@ -8,7 +8,7 @@ "scripts": { "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", "build:es6": "tsc -p tsconfig.json", - "build:nodebrowser": "rollup -c 2>&1", + "build:nodebrowser": "rollup -c 2>&1 && api-extractor run --local", "build:test": "rollup -c rollup.test.config.js 2>&1", "build": "npm run build:es6 && npm run build:nodebrowser", "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", diff --git a/sdk/core/abort-controller/review/abort-controller.api.md b/sdk/core/abort-controller/review/abort-controller.api.md index 2b646496a2dd..bcde2db7e892 100644 --- a/sdk/core/abort-controller/review/abort-controller.api.md +++ b/sdk/core/abort-controller/review/abort-controller.api.md @@ -9,7 +9,7 @@ export class AbortController { constructor(parentSignals?: AbortSignalLike[]); constructor(...parentSignals: AbortSignalLike[]); abort(): void; - readonly signal: AbortSignal; + get signal(): AbortSignal; static timeout(ms: number): AbortSignal; } @@ -21,10 +21,11 @@ export class AbortError extends Error { // @public export class AbortSignal implements AbortSignalLike { constructor(); - readonly aborted: boolean; + get aborted(): boolean; addEventListener(_type: "abort", listener: (this: AbortSignalLike, ev: any) => any): void; - static readonly none: AbortSignal; - onabort?: (ev?: Event) => any; + dispatchEvent(_event: Event): boolean; + static get none(): AbortSignal; + onabort: ((ev?: Event) => any) | null; removeEventListener(_type: "abort", listener: (this: AbortSignalLike, ev: any) => any): void; }