Skip to content

Commit

Permalink
Fix types issues in Paradox.buildApp function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsc6955 committed Jan 18, 2024
1 parent a5508f0 commit 3770dbc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.7] - 2024-01-18
### Fixed
- More types issues in `Paradox.buildApp` function

## [0.4.6] - 2024-01-18
### Fixed
- types issues in `Paradox.buildApp` function
Expand Down
2 changes: 1 addition & 1 deletion build/core/buildApp/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ParadoxEvents = {
[key: string]: EventListener | EventListener[];
};
export type ParadoxElementChildren = (ParadoxElement | string)[];
export type ParadoxAppFunction = () => ParadoxElement | ParadoxElement[];
export type ParadoxAppFunction = () => ParadoxElementResult | ParadoxElement | ParadoxElement[];
export type ParadoxElement = {
attrs: HTMLAttributes;
events?: ParadoxEvents;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "penrose-paradox",
"version": "0.4.6",
"version": "0.4.7",
"description": "Simple vanilla JavaScript library for beginners",
"keywords": [
"penrose",
Expand Down
2 changes: 1 addition & 1 deletion src/core/buildApp/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type ParadoxEvents = {

export type ParadoxElementChildren = (ParadoxElement | string)[];

export type ParadoxAppFunction = () => ParadoxElement | ParadoxElement[]
export type ParadoxAppFunction = () => ParadoxElementResult | ParadoxElement | ParadoxElement[]

export type ParadoxElement = {
attrs: HTMLAttributes;
Expand Down

0 comments on commit 3770dbc

Please sign in to comment.