From b3a8bcfa520706e3ab763dff5906dee436edea0e Mon Sep 17 00:00:00 2001 From: natxocc Date: Tue, 7 Apr 2026 12:58:59 +0200 Subject: [PATCH] Actualizar sigpro.ts --- sigpro.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigpro.ts b/sigpro.ts index bede773..2ea6b90 100644 --- a/sigpro.ts +++ b/sigpro.ts @@ -221,11 +221,11 @@ export const onUnmount = (fn: CleanupFn): void => { context?.u.push(fn); }; -export const provide = (key: string | symbol, value: any): void => { +export const share = (key: string | symbol, value: any): void => { if (context) context.p[key] = value; }; -export const inject = (key: string | symbol, defaultValue?: any): any => { +export const use = (key: string | symbol, defaultValue?: any): any => { if (context && key in context.p) return context.p[key]; return defaultValue; };