Demo application (tic-tac-toe game and more) built with Web Components, with progressive enhancement / graceful degradation.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
declare module "preact/jsx-runtime" {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-namespace -- preact uses namespaces, so we have too
|
|
|
|
namespace JSX {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- this is how declaration merging is done
|
|
|
|
interface HTMLAttributes {
|
|
|
|
// custom attribute used by query-tracker web components
|
|
|
|
delta?: string;
|
|
|
|
track?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- this is how declaration merging is done
|
|
|
|
interface IntrinsicElements {
|
|
|
|
"board-game": HTMLAttributes;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|