e621-sdk
Version:
从E621抓取帖子。支持搜索、引用、随机。
10 lines (9 loc) • 397 B
TypeScript
import { MutuallyExclusive } from "../utils";
export declare type Updater<P extends string> = MutuallyExclusive<{
[K in P]: string;
}, {
[K in P as `${K}_diff`]: string;
}>;
export declare type TagStringUpdater = Updater<"tag_string">;
export declare type SourceUpdater = Updater<"source">;
export declare type LockState = `is_${"rating" | "note" | "comment" | "status"}_locked`;