commit
This commit is contained in:
parent
be4fd23bcf
commit
0bd53741af
728 changed files with 86573 additions and 0 deletions
31
node_modules/cheerio/lib/api/forms.d.ts
generated
vendored
Normal file
31
node_modules/cheerio/lib/api/forms.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
import type { Node } from 'domhandler';
|
||||
import type { Cheerio } from '../cheerio';
|
||||
/**
|
||||
* Encode a set of form elements as a string for submission.
|
||||
*
|
||||
* @category Forms
|
||||
* @returns The serialized form.
|
||||
* @see {@link https://api.jquery.com/serialize/}
|
||||
*/
|
||||
export declare function serialize<T extends Node>(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 Node>(this: Cheerio<T>): SerializedField[];
|
||||
export {};
|
||||
//# sourceMappingURL=forms.d.ts.map
|
Loading…
Add table
Add a link
Reference in a new issue