Skip to content

Commit 83ada55

Browse files
committed
[fix] Compatibility bug with TypeScript strict mode
[optimize] move Document Packing script to sub folder
1 parent 68e01d0 commit 83ada55

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-cell",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "Web Components engine based on VDOM, JSX, MobX & TypeScript",
55
"keywords": [
66
"web",
@@ -81,7 +81,7 @@
8181
"preview": "npm run clean && cd preview/ && parcel --dist-dir=../docs/preview/ --open",
8282
"pack-preview": "rimraf .parcel-cache/ docs/preview/ && cd preview/ && parcel build --public-url=. --dist-dir=../docs/preview/",
8383
"pack-dist": "parcel build source/index.ts",
84-
"pack-docs": "sh ./pack-docs.sh",
84+
"pack-docs": "sh ./guide/pack-docs.sh",
8585
"build": "npm run clean && npm run pack-dist && npm run pack-docs && npm run pack-preview",
8686
"start": "npm run pack-docs && open-cli docs/index.html",
8787
"prepublishOnly": "npm test && npm run build"

source/decorator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ export function attribute<C extends HTMLElement, V>(
178178
}
179179

180180
export type ReactionExpression<I = any, O = any> = (
181-
data?: I,
182-
reaction?: IReactionPublic
181+
data: I,
182+
reaction: IReactionPublic
183183
) => O;
184184

185185
export type ReactionEffect<V> = (

0 commit comments

Comments
 (0)