���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules.2
/
unctx
/
dist
/
Viewing: index.d.ts
import { AsyncLocalStorage } from 'node:async_hooks'; interface UseContext<T> { /** * Get the current context. Throws if no context is set. */ use: () => T; /** * Get the current context. Returns `null` when no context is set. */ tryUse: () => T | null; /** * Set the context as Singleton Pattern. */ set: (instance?: T, replace?: boolean) => void; /** * Clear current context. */ unset: () => void; /** * Exclude a synchronous function with the provided context. */ call: <R>(instance: T, callback: () => R) => R; /** * Exclude an asynchronous function with the provided context. * Requires installing the transform plugin to work properly. */ callAsync: <R>(instance: T, callback: () => R | Promise<R>) => Promise<R>; } interface ContextOptions { asyncContext?: boolean; AsyncLocalStorage?: typeof AsyncLocalStorage; } declare function createContext<T = any>(opts?: ContextOptions): UseContext<T>; interface ContextNamespace { get: <T>(key: string, opts?: ContextOptions) => UseContext<T>; } declare function createNamespace<T = any>(defaultOpts?: ContextOptions): { get(key: any, opts?: ContextOptions): UseContext<T>; }; declare const defaultNamespace: ContextNamespace; declare const getContext: <T>(key: string, opts?: ContextOptions) => UseContext<T>; declare const useContext: <T>(key: string, opts?: ContextOptions) => () => T; type AsyncFunction<T> = () => Promise<T>; declare function executeAsync<T>(function_: AsyncFunction<T>): [Promise<T>, () => void]; declare function withAsyncContext<T = any>(function_: AsyncFunction<T>, transformed?: boolean): AsyncFunction<T>; export { ContextNamespace, ContextOptions, UseContext, createContext, createNamespace, defaultNamespace, executeAsync, getContext, useContext, withAsyncContext };
Coded With 💗 by
0x6ick Mod By V1rus_Alfa