summaryrefslogtreecommitdiff
path: root/preact/test/ts/jsx-namespacce-test.tsx
blob: d6e10bdf2bb03b049cb155a801dd3eae34c1b299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { createElement, Component } from '../../';

// declare global JSX types that should not be mixed with preact's internal types
declare global {
	namespace JSX {
		interface Element {
			unknownProperty: string;
		}
	}
}

class SimpleComponent extends Component {
	render() {
		return <div>It works</div>;
	}
}