新增: - backend/venv/ - Python 虚拟环境 - backend/start.sh - 启动脚本(使用虚拟环境) - backend/requirements.txt - 依赖列表 - .gitignore - 忽略虚拟环境和缓存文件 说明: - 每个项目使用独立虚拟环境 - 避免依赖冲突 - 启动脚本自动创建和激活虚拟环境
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
import { Node } from "domhandler";
|
|
import { DomSerializerOptions } from "dom-serializer";
|
|
/**
|
|
* @param node Node to get the outer HTML of.
|
|
* @param options Options for serialization.
|
|
* @deprecated Use the `dom-serializer` module directly.
|
|
* @returns `node`'s outer HTML.
|
|
*/
|
|
export declare function getOuterHTML(node: Node | Node[], options?: DomSerializerOptions): string;
|
|
/**
|
|
* @param node Node to get the inner HTML of.
|
|
* @param options Options for serialization.
|
|
* @deprecated Use the `dom-serializer` module directly.
|
|
* @returns `node`'s inner HTML.
|
|
*/
|
|
export declare function getInnerHTML(node: Node, options?: DomSerializerOptions): string;
|
|
/**
|
|
* Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags.
|
|
*
|
|
* @deprecated Use `textContent` instead.
|
|
* @param node Node to get the inner text of.
|
|
* @returns `node`'s inner text.
|
|
*/
|
|
export declare function getText(node: Node | Node[]): string;
|
|
/**
|
|
* Get a node's text content.
|
|
*
|
|
* @param node Node to get the text content of.
|
|
* @returns `node`'s text content.
|
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent}
|
|
*/
|
|
export declare function textContent(node: Node | Node[]): string;
|
|
/**
|
|
* Get a node's inner text.
|
|
*
|
|
* @param node Node to get the inner text of.
|
|
* @returns `node`'s inner text.
|
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText}
|
|
*/
|
|
export declare function innerText(node: Node | Node[]): string;
|
|
//# sourceMappingURL=stringify.d.ts.map
|