-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve type narrowing of Phoria Islands (#21)
- Loading branch information
Showing
17 changed files
with
120 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@phoria/phoria": patch | ||
"@phoria/phoria-svelte": patch | ||
"@phoria/phoria-react": patch | ||
"@phoria/phoria-vue": patch | ||
--- | ||
|
||
Improve type narrowing of Phoria Islands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import { registerSsrService } from "@phoria/phoria" | ||
import { framework } from "~/main" | ||
import { type RenderReactPhoriaIslandComponent, renderComponentToStream, renderComponentToString, service } from "./ssr" | ||
import { | ||
type ReactPhoriaIsland, | ||
type RenderReactPhoriaIslandComponent, | ||
isReactIsland, | ||
renderComponentToStream, | ||
renderComponentToString, | ||
service | ||
} from "./ssr" | ||
|
||
registerSsrService(framework.name, service) | ||
|
||
export { renderComponentToStream, renderComponentToString } | ||
export { isReactIsland, renderComponentToStream, renderComponentToString } | ||
|
||
export type { RenderReactPhoriaIslandComponent } | ||
export type { ReactPhoriaIsland, RenderReactPhoriaIslandComponent } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import { registerSsrService } from "@phoria/phoria" | ||
import { framework } from "~/main" | ||
import { type RenderSveltePhoriaIslandComponent, renderComponentToString, service } from "./ssr" | ||
import { | ||
type RenderSveltePhoriaIslandComponent, | ||
type SveltePhoriaIsland, | ||
isSvelteIsland, | ||
renderComponentToString, | ||
service | ||
} from "./ssr" | ||
|
||
registerSsrService(framework.name, service) | ||
|
||
export { renderComponentToString } | ||
export { isSvelteIsland, renderComponentToString } | ||
|
||
export type { RenderSveltePhoriaIslandComponent } | ||
export type { RenderSveltePhoriaIslandComponent, SveltePhoriaIsland } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import { registerSsrService } from "@phoria/phoria" | ||
import { framework } from "~/main" | ||
import { type RenderVuePhoriaIslandComponent, renderComponentToStream, renderComponentToString, service } from "./ssr" | ||
import { | ||
type RenderVuePhoriaIslandComponent, | ||
type VuePhoriaIsland, | ||
isVueIsland, | ||
renderComponentToStream, | ||
renderComponentToString, | ||
service | ||
} from "./ssr" | ||
|
||
registerSsrService(framework.name, service) | ||
|
||
export { renderComponentToStream, renderComponentToString } | ||
export { isVueIsland, renderComponentToStream, renderComponentToString } | ||
|
||
export type { RenderVuePhoriaIslandComponent } | ||
export type { RenderVuePhoriaIslandComponent, VuePhoriaIsland } |
Oops, something went wrong.