Merge branch 'dev' into main

This commit is contained in:
Go Compile
2024-02-18 22:02:35 +00:00
committed by GitHub
108 changed files with 3853 additions and 895 deletions
+8
View File
@@ -134,3 +134,11 @@ export enum LinkType {
pdf,
image,
}
export enum TokenExpiry {
sevenDays,
oneMonth,
twoMonths,
threeMonths,
never,
}
+22
View File
@@ -0,0 +1,22 @@
declare module "himalaya" {
export interface Attribute {
key: string;
value: string;
}
export interface TextNode {
type: "text";
content: string;
}
export type Node = TextNode | Element;
export interface Element {
type: "element";
tagName: string;
attributes: Attribute[];
children: Node[];
}
export function parse(html: string): Node[];
}