ketting
Version:
Opinionated HATEOAS / Rest client.
15 lines (14 loc) • 352 B
TypeScript
import { Link } from '../link.js';
export type HtmlForm = {
action: string;
method: string | null;
enctype: string | null;
rel: string | null;
id: string | null;
};
type ParseHtmlResult = {
links: Link[];
forms: HtmlForm[];
};
export declare function parseHtml(contextUri: string, body: string): ParseHtmlResult;
export {};