Download node_modules/@headlessui/react/dist/machine.d.ts from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 2.34 kB
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40headlessui/react/dist/machine.d.ts
- Command line
-
hf download hf://spaces/sitcod3/modul-s@c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/@headlessui/react/dist/machine.d.ts
-
curl -L -o machine.d.ts https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40headlessui/react/dist/machine.d.ts
2.34 kB
| export declare abstract class Machine<State, Event extends { | |
| type: number | string; | |
| }> { | |
| #private; | |
| disposables: { | |
| addEventListener<TEventName extends keyof WindowEventMap>(element: Window | Document | HTMLElement, name: TEventName, listener: (event: WindowEventMap[TEventName]) => any, options?: boolean | AddEventListenerOptions | undefined): () => void; | |
| requestAnimationFrame(callback: FrameRequestCallback): () => void; | |
| nextFrame(callback: FrameRequestCallback): () => void; | |
| setTimeout(callback: (...args: any[]) => void, ms?: number | undefined, ...args: any[]): () => void; | |
| microTask(cb: () => void): () => void; | |
| style(node: ElementCSSInlineStyle, property: string, value: string): () => void; | |
| group(cb: (d: { | |
| addEventListener<TEventName extends keyof WindowEventMap>(element: Window | Document | HTMLElement, name: TEventName, listener: (event: WindowEventMap[TEventName]) => any, options?: boolean | AddEventListenerOptions | undefined): () => void; | |
| requestAnimationFrame(callback: FrameRequestCallback): () => void; | |
| nextFrame(callback: FrameRequestCallback): () => void; | |
| setTimeout(callback: (...args: any[]) => void, ms?: number | undefined, ...args: any[]): () => void; | |
| microTask(cb: () => void): () => void; | |
| style(node: ElementCSSInlineStyle, property: string, value: string): () => void; | |
| group(cb: any): () => void; | |
| add(cb: () => void): () => void; | |
| dispose(): void; | |
| }) => void): () => void; | |
| add(cb: () => void): () => void; | |
| dispose(): void; | |
| }; | |
| constructor(initialState: State); | |
| dispose(): void; | |
| get state(): Readonly<State>; | |
| abstract reduce(state: Readonly<State>, event: Event): Readonly<State>; | |
| subscribe<Slice>(selector: (state: Readonly<State>) => Slice, callback: (state: Slice) => void): () => void; | |
| on<T extends Event['type']>(type: T, callback: (state: State, event: Extract<Event, { | |
| type: T; | |
| }>) => void): () => void; | |
| send(event: Event): void; | |
| } | |
| export declare function shallowEqual(a: any, b: any): boolean; | |
| export declare function batch<F extends (...args: any[]) => void, P extends any[] = Parameters<F>>(setup: () => [callback: F, handle: () => void]): (...args: P) => void; | |