0.1.0 #1

Merged
Thilawyn merged 87 commits from next into master 2025-01-18 00:54:42 +01:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit f3f44d9abe - Show all commits

View File

@@ -4,4 +4,4 @@ import { FetchData } from "./services"
export const GlobalContext = ReffuseContext.make<FetchData.FetchData>()
export const Reffuse = make([GlobalContext])
export const Reffuse = make(GlobalContext)

View File

@@ -5,4 +5,4 @@ import { PostsState } from "./services"
export const PostsContext = ReffuseContext.make<PostsState.PostsState>()
export const Reffuse = make([GlobalContext, PostsContext])
export const Reffuse = make(GlobalContext, PostsContext)

View File

@@ -155,6 +155,6 @@ export interface RenderOptions {
export const make = <
const Contexts extends readonly ReffuseContext.ReffuseContext<any>[]
>(
contexts: Contexts
...contexts: Contexts
): Reffuse<{ [K in keyof Contexts]: ReffuseContext.R<Contexts[K]> }[number]> =>
new Reffuse(contexts)