File tree 5 files changed +13
-4
lines changed
5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ ! dist
2
+ example /
3
+ coverage /
4
+ docs /
5
+ jest.config.js
6
+ tsconfig.json
7
+ config /
8
+ .editorconfig
9
+ .prettierrc
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ injectCSS(style)
7
7
8
8
const island = createIsland ( Pokemon )
9
9
10
- // @ts -ignore
10
+ // @ts -expect-error - We're mutating the window to add this
11
11
window . _pokemon = island
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " preact-island" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"type" : " module" ,
5
5
"description" : " 🏝 Create your own slice of paradise on any website." ,
6
6
"source" : " src/index.ts" ,
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export type Island<P extends InitialProps> = {
104
104
/**
105
105
* Initial props to pass to the component. These props do not cause updates to the island if changed. Use `createIsland().rerender` instead.
106
106
*/
107
- initialProps ?: P
107
+ initialProps ?: Partial < P >
108
108
/**
109
109
* A valid selector to a script tag located in the HTML document with a type of either `text/props` or `application/json`
110
110
* containing props to pass into the component. If there are multiple scripts found with the selector, all props are merged with
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export function createRootFragment(
145
145
parent . insertBefore ( c , r || s )
146
146
}
147
147
// Mutating the parent to add a preact property
148
- // @ts -ignore
148
+ // @ts -expect-error We're mutating the parent to add these properties for Preact
149
149
return ( parent . __k = {
150
150
nodeType : 1 ,
151
151
parentNode : parent ,
You can’t perform that action at this time.
0 commit comments