@ginstone/nga-api
Version:
34 lines (33 loc) • 736 B
TypeScript
import { AttachmentView } from "./AttachmentView";
/**
* 缩略图bit数据, 位置与后缀的对应关系
*/
export declare const THUMB_MAP: {
index: number;
suffix: string;
}[];
export declare class Attachment {
url: string;
absoluteUrl?: string;
description?: string;
extension?: string;
filename?: string;
path?: string;
size?: number;
type?: string;
originalFilename?: string;
view: AttachmentView;
constructor(raw: AttachmentRaw);
}
export interface AttachmentRaw {
url?: string;
attachurl?: string;
dscp?: string;
ext?: string;
name?: string;
path?: string;
size?: number;
type?: string;
thumb?: number;
url_utf8_org_name?: string;
}