Skip to content

Commit

Permalink
Replace local type declarations for polyfill APIs with those imported…
Browse files Browse the repository at this point in the history
… from the polyfills. (#1208)

* Temporarily add local tarball based off of the `ts-externs` branch in webcomponents/polyfills.

* Install the polyfill tarball package.

* Remove local polyfill type declarations and reference those from the polyfill package instead.

* Update webcomponentsjs tarball.

* Replace local polyfills tarball with `@webcomponents/webcomponentsjs@^2.6.0`.
  • Loading branch information
bicknellr committed Aug 6, 2021
1 parent 9cb4335 commit 8e32c37
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 24 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@types/chai": "^4.2.15",
"@types/mocha": "^5.2.4",
"@webcomponents/shadycss": "^1.10.2",
"@webcomponents/webcomponentsjs": "^2.5.0",
"@webcomponents/webcomponentsjs": "^2.6.0",
"chai": "^4.3.3",
"clang-format": "^1.5.0",
"downlevel-dts": "^0.7.0",
Expand Down
16 changes: 0 additions & 16 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
interface ShadyCSS {
styleElement(host: Element, overrideProps?: {[key: string]: string}): void;
getComputedStyleValue(element: Element, property: string): string;
ScopingShim: undefined|{
prepareAdoptedCssText(cssText: string[], name: string): void;
};
nativeShadow: boolean;
}

interface ShadyDOM {
inUse: boolean;
flush: () => void;
}

interface Window {
ShadyCSS?: ShadyCSS;
ShadyDOM?: ShadyDOM;
ShadowRoot: typeof ShadowRoot;
}

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"include": [
"custom_typings/**/*.ts",
"node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts",
"src/**/*.ts"
],
"exclude": []
Expand Down

0 comments on commit 8e32c37

Please sign in to comment.