Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
atellmer committed Nov 25, 2022
1 parent 540508f commit bb8ad5c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dark-engine/core",
"version": "0.9.7-beta.1",
"version": "0.9.8",
"description": "Dark is lightweight (10 Kb gzipped) component-and-hook-based UI rendering engine for javascript apps without dependencies and written in TypeScript 💫",
"author": "AlexPlex",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dark-engine/platform-browser",
"version": "0.9.7-beta.1",
"version": "0.9.8",
"description": "Dark is lightweight (10 Kb gzipped) component-and-hook-based UI rendering engine for javascript apps without dependencies and written in TypeScript 💫",
"author": "AlexPlex",
"license": "MIT",
Expand Down
6 changes: 5 additions & 1 deletion packages/platform-browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export const version = process.env.VERSION;

declare global {
namespace JSX {
interface IntrinsicElements {}
interface IntrinsicElements {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
[elemName: string]: any;
}
}
}
4 changes: 3 additions & 1 deletion packages/platform-browser/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export type { SyntheticEvent } from './events';
export declare const version: string;
declare global {
namespace JSX {
interface IntrinsicElements {}
interface IntrinsicElements {
[elemName: string]: any;
}
}
}

0 comments on commit bb8ad5c

Please sign in to comment.