You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
543 B
TypeScript
21 lines
543 B
TypeScript
import { VNode as _VNode, VNodeData as _VNodeData } from './vnode';
|
|
|
|
// workaround
|
|
// https://github.com/typescript-eslint/typescript-eslint/issues/1596
|
|
type VNode = _VNode;
|
|
type VNodeData = _VNodeData;
|
|
|
|
declare global {
|
|
/**
|
|
* opt-in jsx intrinsic global interfaces
|
|
* see: https://www.typescriptlang.org/docs/handbook/jsx.html#type-checking
|
|
*/
|
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
namespace JSX {
|
|
type Element = VNode;
|
|
interface IntrinsicElements {
|
|
[elemName: string]: VNodeData
|
|
}
|
|
}
|
|
}
|