Skip to content

Commit

Permalink
Merge pull request #30 from ConnorJamesLow/release/v0.6.2
Browse files Browse the repository at this point in the history
Release v0.6.2
  • Loading branch information
ConnorJamesLow authored Feb 22, 2023
2 parents ffc8894 + f604f64 commit 00cdba5
Show file tree
Hide file tree
Showing 13 changed files with 2,159 additions and 234 deletions.
1 change: 0 additions & 1 deletion examples/vite-ts-project/src/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const Example: JSX.Component<ExampleProps> = ({ onClick }, children) => (
<div class="example" onclick={onClick} aria-label="Example">{children}</div>
);


const div = <div>Hello there.</div> as HTMLElement;
const span = <span>Hello from inside the Example component!</span>;
const content = <>
Expand Down
5 changes: 5 additions & 0 deletions examples/vite-ts-project/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace JSX {
interface IntrinsicElements {
'hello-world': any // example of how you might add a custom element to the intrinsc element map
}
}
13 changes: 13 additions & 0 deletions package/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extension": [
"ts",
"tsx"
],
"spec": [
"src/**/*.test.tsx"
],
"require": [
"test/entry.js",
"ts-node/register"
]
}
4 changes: 3 additions & 1 deletion package/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ src/
.git*
tsconfig.*
*.test.tsx
*.test.ts
*.test.ts
test/
.mocharc.json
2 changes: 1 addition & 1 deletion package/JSX.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ declare namespace JSX {
type SVGTag = keyof SVGElementTagNameMap;

interface Component<T = undefined | {}> {
(properties: T, children?: Node | Node[]): Element
(properties: T, children?: Node[]): Element
}
}

Expand Down
Loading

0 comments on commit 00cdba5

Please sign in to comment.