Spaces:
Paused
Paused
Download node_modules/cheerio/lib/esm/api/forms.d.ts from no1b4me/hytranslator: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/spaces/no1b4me/hytranslator/resolve/main/node_modules/cheerio/lib/esm/api/forms.d.ts
- Command line
-
hf download hf://spaces/no1b4me/hytranslator/node_modules/cheerio/lib/esm/api/forms.d.ts
-
curl -L -o forms.d.ts https://huggingface.co/spaces/no1b4me/hytranslator/resolve/main/node_modules/cheerio/lib/esm/api/forms.d.ts
1 kB
| import type { AnyNode } from 'domhandler'; | |
| import type { Cheerio } from '../cheerio.js'; | |
| /** | |
| * Encode a set of form elements as a string for submission. | |
| * | |
| * @category Forms | |
| * @example | |
| * | |
| * ```js | |
| * $('<form><input name="foo" value="bar" /></form>').serialize(); | |
| * //=> 'foo=bar' | |
| * ``` | |
| * | |
| * @returns The serialized form. | |
| * @see {@link https://api.jquery.com/serialize/} | |
| */ | |
| export declare function serialize<T extends AnyNode>(this: Cheerio<T>): string; | |
| interface SerializedField { | |
| name: string; | |
| value: string; | |
| } | |
| /** | |
| * Encode a set of form elements as an array of names and values. | |
| * | |
| * @category Forms | |
| * @example | |
| * | |
| * ```js | |
| * $('<form><input name="foo" value="bar" /></form>').serializeArray(); | |
| * //=> [ { name: 'foo', value: 'bar' } ] | |
| * ``` | |
| * | |
| * @returns The serialized form. | |
| * @see {@link https://api.jquery.com/serializeArray/} | |
| */ | |
| export declare function serializeArray<T extends AnyNode>(this: Cheerio<T>): SerializedField[]; | |
| export {}; | |
| //# sourceMappingURL=forms.d.ts.map |