diff --git a/change/@microsoft-fast-element-5a826d6a-4945-4423-873e-27ef3dba737b.json b/change/@microsoft-fast-element-5a826d6a-4945-4423-873e-27ef3dba737b.json new file mode 100644 index 00000000000..69a7eef07b2 --- /dev/null +++ b/change/@microsoft-fast-element-5a826d6a-4945-4423-873e-27ef3dba737b.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "remove unnecessary dependency on @types/ie11 package", + "packageName": "@microsoft/fast-element", + "email": "chhol@microsoft.com", + "dependentChangeType": "none" +} diff --git a/packages/web-components/fast-element/package.json b/packages/web-components/fast-element/package.json index 1e5f0a6c8e0..a88995ae363 100644 --- a/packages/web-components/fast-element/package.json +++ b/packages/web-components/fast-element/package.json @@ -73,7 +73,6 @@ "@types/karma": "^5.0.0", "@types/mocha": "^7.0.2", "@types/webpack-env": "^1.15.2", - "@types/web-ie11": "^0.0.0", "chai": "^4.2.0", "chai-spies": "^1.0.0", "esm": "^3.2.25", diff --git a/packages/web-components/fast-element/src/interfaces.ts b/packages/web-components/fast-element/src/interfaces.ts index 7f7179b6f8f..c12b72c44db 100644 --- a/packages/web-components/fast-element/src/interfaces.ts +++ b/packages/web-components/fast-element/src/interfaces.ts @@ -21,6 +21,16 @@ export type Mutable = { -readonly [P in keyof T]: T[P]; }; +/** + * Extracts the item type from an array. + * @public + */ +export type ArrayItem = T extends ReadonlyArray + ? TItem + : T extends Array + ? TItem + : any; + /** * A policy for use with the standard trustedTypes platform API. * @public diff --git a/packages/web-components/fast-element/tsconfig.json b/packages/web-components/fast-element/tsconfig.json index 8b6f39845b9..649f0095b1c 100644 --- a/packages/web-components/fast-element/tsconfig.json +++ b/packages/web-components/fast-element/tsconfig.json @@ -11,8 +11,7 @@ "module": "ESNext", "types": [ "mocha", - "webpack-env", - "web-ie11" + "webpack-env" ], "lib": [ "DOM",