初始化
This commit is contained in:
36
node_modules/cheerio/dist/commonjs/api/forms.d.ts
generated
vendored
Normal file
36
node_modules/cheerio/dist/commonjs/api/forms.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
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;
|
||||
/**
|
||||
* 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>): {
|
||||
name: string;
|
||||
value: string;
|
||||
}[];
|
||||
//# sourceMappingURL=forms.d.ts.map
|
||||
Reference in New Issue
Block a user