deno.land / x / solid_signals@solid-signals@1.3.7 / types.d.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Soliddeclare global { module "solid-js" { import { Signal, Accessor, Setter } from "solid-js"; import { SignalOptions } from "solid-js/types/reactive/signal";
namespace createSignal { export type Type<T> = (value: T, options?: SignalOptions<T>) => Signal<T>; export type Extended<T, Extensions extends [{}, {}]> = ( value: T, options?: SignalOptions<T> ) => [Accessor<T> & Extensions[0], Setter<T> & Extensions[1]]; export namespace Extended { type Result<T, Extensions extends [{}, {}]> = ReturnType< Extended<T, Extensions> >; } } }}
type NoInfer<T> = [T][T extends any ? 0 : never];
solid_signals
GitHub Stars
4

Version Info

Tagged at
2 months ago