diff --git a/.gitignore b/.gitignore index 42021f4d0a4..86850b86fc2 100644 --- a/.gitignore +++ b/.gitignore @@ -52,9 +52,8 @@ null_errors*.json # TODO(STENCIL-454): Remove or change this up once we've eliminated unused exports unused-exports*.txt -# TODO(STENCIL-1203): check in type files back into the repository after migration -test/wdio/src/components.d.ts -test/wdio/www-global-script/ +# wdio test output test/wdio/test-components +test/wdio/www-global-script/ test/wdio/www-prerender-script test/wdio/www-invisible-prehydration/ diff --git a/test/wdio/src/components.d.ts b/test/wdio/src/components.d.ts new file mode 100644 index 00000000000..187e93e56ee --- /dev/null +++ b/test/wdio/src/components.d.ts @@ -0,0 +1,182 @@ +/* eslint-disable */ +/* tslint:disable */ +/** + * This is an autogenerated file created by the Stencil compiler. + * It contains typing information for all components that exist in this project. + */ +import { HTMLStencilElement, JSXBase } from "@stencil/core/internal"; +export namespace Components { + interface AppRoot { + } + interface CmpA { + } + interface CmpB { + } + interface CmpC { + } + interface CmpClientScoped { + } + interface CmpClientShadow { + } + interface CmpD { + "uniqueId": string; + } + interface CmpScopedA { + } + interface CmpScopedB { + } + interface CmpTextBlue { + } + interface CmpTextGreen { + } + interface TestSvg { + } +} +declare global { + interface HTMLAppRootElement extends Components.AppRoot, HTMLStencilElement { + } + var HTMLAppRootElement: { + prototype: HTMLAppRootElement; + new (): HTMLAppRootElement; + }; + interface HTMLCmpAElement extends Components.CmpA, HTMLStencilElement { + } + var HTMLCmpAElement: { + prototype: HTMLCmpAElement; + new (): HTMLCmpAElement; + }; + interface HTMLCmpBElement extends Components.CmpB, HTMLStencilElement { + } + var HTMLCmpBElement: { + prototype: HTMLCmpBElement; + new (): HTMLCmpBElement; + }; + interface HTMLCmpCElement extends Components.CmpC, HTMLStencilElement { + } + var HTMLCmpCElement: { + prototype: HTMLCmpCElement; + new (): HTMLCmpCElement; + }; + interface HTMLCmpClientScopedElement extends Components.CmpClientScoped, HTMLStencilElement { + } + var HTMLCmpClientScopedElement: { + prototype: HTMLCmpClientScopedElement; + new (): HTMLCmpClientScopedElement; + }; + interface HTMLCmpClientShadowElement extends Components.CmpClientShadow, HTMLStencilElement { + } + var HTMLCmpClientShadowElement: { + prototype: HTMLCmpClientShadowElement; + new (): HTMLCmpClientShadowElement; + }; + interface HTMLCmpDElement extends Components.CmpD, HTMLStencilElement { + } + var HTMLCmpDElement: { + prototype: HTMLCmpDElement; + new (): HTMLCmpDElement; + }; + interface HTMLCmpScopedAElement extends Components.CmpScopedA, HTMLStencilElement { + } + var HTMLCmpScopedAElement: { + prototype: HTMLCmpScopedAElement; + new (): HTMLCmpScopedAElement; + }; + interface HTMLCmpScopedBElement extends Components.CmpScopedB, HTMLStencilElement { + } + var HTMLCmpScopedBElement: { + prototype: HTMLCmpScopedBElement; + new (): HTMLCmpScopedBElement; + }; + interface HTMLCmpTextBlueElement extends Components.CmpTextBlue, HTMLStencilElement { + } + var HTMLCmpTextBlueElement: { + prototype: HTMLCmpTextBlueElement; + new (): HTMLCmpTextBlueElement; + }; + interface HTMLCmpTextGreenElement extends Components.CmpTextGreen, HTMLStencilElement { + } + var HTMLCmpTextGreenElement: { + prototype: HTMLCmpTextGreenElement; + new (): HTMLCmpTextGreenElement; + }; + interface HTMLTestSvgElement extends Components.TestSvg, HTMLStencilElement { + } + var HTMLTestSvgElement: { + prototype: HTMLTestSvgElement; + new (): HTMLTestSvgElement; + }; + interface HTMLElementTagNameMap { + "app-root": HTMLAppRootElement; + "cmp-a": HTMLCmpAElement; + "cmp-b": HTMLCmpBElement; + "cmp-c": HTMLCmpCElement; + "cmp-client-scoped": HTMLCmpClientScopedElement; + "cmp-client-shadow": HTMLCmpClientShadowElement; + "cmp-d": HTMLCmpDElement; + "cmp-scoped-a": HTMLCmpScopedAElement; + "cmp-scoped-b": HTMLCmpScopedBElement; + "cmp-text-blue": HTMLCmpTextBlueElement; + "cmp-text-green": HTMLCmpTextGreenElement; + "test-svg": HTMLTestSvgElement; + } +} +declare namespace LocalJSX { + interface AppRoot { + } + interface CmpA { + } + interface CmpB { + } + interface CmpC { + } + interface CmpClientScoped { + } + interface CmpClientShadow { + } + interface CmpD { + "uniqueId"?: string; + } + interface CmpScopedA { + } + interface CmpScopedB { + } + interface CmpTextBlue { + } + interface CmpTextGreen { + } + interface TestSvg { + } + interface IntrinsicElements { + "app-root": AppRoot; + "cmp-a": CmpA; + "cmp-b": CmpB; + "cmp-c": CmpC; + "cmp-client-scoped": CmpClientScoped; + "cmp-client-shadow": CmpClientShadow; + "cmp-d": CmpD; + "cmp-scoped-a": CmpScopedA; + "cmp-scoped-b": CmpScopedB; + "cmp-text-blue": CmpTextBlue; + "cmp-text-green": CmpTextGreen; + "test-svg": TestSvg; + } +} +export { LocalJSX as JSX }; +declare module "@stencil/core" { + export namespace JSX { + interface IntrinsicElements { + "app-root": LocalJSX.AppRoot & JSXBase.HTMLAttributes; + "cmp-a": LocalJSX.CmpA & JSXBase.HTMLAttributes; + "cmp-b": LocalJSX.CmpB & JSXBase.HTMLAttributes; + "cmp-c": LocalJSX.CmpC & JSXBase.HTMLAttributes; + "cmp-client-scoped": LocalJSX.CmpClientScoped & JSXBase.HTMLAttributes; + "cmp-client-shadow": LocalJSX.CmpClientShadow & JSXBase.HTMLAttributes; + "cmp-d": LocalJSX.CmpD & JSXBase.HTMLAttributes; + "cmp-scoped-a": LocalJSX.CmpScopedA & JSXBase.HTMLAttributes; + "cmp-scoped-b": LocalJSX.CmpScopedB & JSXBase.HTMLAttributes; + "cmp-text-blue": LocalJSX.CmpTextBlue & JSXBase.HTMLAttributes; + "cmp-text-green": LocalJSX.CmpTextGreen & JSXBase.HTMLAttributes; + "test-svg": LocalJSX.TestSvg & JSXBase.HTMLAttributes; + } + } +}