Refactoring
Some checks failed
Lint / lint (push) Failing after 9s

This commit is contained in:
Julien Valverdé
2025-01-15 18:07:40 +01:00
parent 9acf34ee4a
commit f3f44d9abe
3 changed files with 3 additions and 3 deletions

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)