diff --git a/CHANGELOG.md b/CHANGELOG.md index fbb2d80..fb63807 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/build/core/buildApp/types/index.d.ts b/build/core/buildApp/types/index.d.ts index 6d193f3..a7debe8 100644 --- a/build/core/buildApp/types/index.d.ts +++ b/build/core/buildApp/types/index.d.ts @@ -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; diff --git a/package.json b/package.json index 2e3d43b..56254e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "penrose-paradox", - "version": "0.4.6", + "version": "0.4.7", "description": "Simple vanilla JavaScript library for beginners", "keywords": [ "penrose", diff --git a/src/core/buildApp/types/index.ts b/src/core/buildApp/types/index.ts index 9c170ba..e7bf81b 100644 --- a/src/core/buildApp/types/index.ts +++ b/src/core/buildApp/types/index.ts @@ -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;