Skip to content

Instantly share code, notes, and snippets.

@MonsieurMan
Created August 10, 2018 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MonsieurMan/43d2b58a8f58ad17763af0307a2ecfdf to your computer and use it in GitHub Desktop.
Save MonsieurMan/43d2b58a8f58ad17763af0307a2ecfdf to your computer and use it in GitHub Desktop.
declare global {
// This is actually merging to the HTMLElement DOM Interface
interface HTMLElement {
componentOnReady?: () => Promise<this | null>;
}
interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;
forceUpdate(): void;
}
namespace StencilComponents {
interface Adder { }
}
interface HTMLAdderElement extends StencilComponents.Adder, HTMLStencilElement { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment