执行过npm install命令的vue-element-admin源码
康凯
2022-05-20 aa4c235a8ca67ea8b731f90c951a465e92c0a865
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* index.d.ts (C) 2013-present SheetJS */
// TypeScript Version: 2.2
 
/** Version string */
export const version: string;
 
/** Parse a buffer or array */
export function parse(f: CFB$Blob, options?: CFB$ParsingOptions): CFB$Container;
 
/** Read a blob or file or binary string */
export function read(f: CFB$Blob | string, options?: CFB$ParsingOptions): CFB$Container;
 
/** Find a file entry given a path or file name */
export function find(cfb: CFB$Container, path: string): CFB$Entry | null;
 
/** Generate a container file */
export function write(cfb: CFB$Container, options?: CFB$WritingOptions): any;
 
/** Write a container file to the filesystem */
export function writeFile(cfb: CFB$Container, filename: string, options?: CFB$WritingOptions): any;
 
/** Utility functions */
export const utils: CFB$Utils;
 
export interface CFB$CommonOptions {
    /** Data encoding */
    type?: 'base64' | 'binary' | 'buffer' | 'file' | 'array';
 
    /** If true, throw errors when features are not understood */
    WTF?: boolean;
}
 
/** Options for read and readFile */
export interface CFB$ParsingOptions extends CFB$CommonOptions {
    /** If true, include raw data in output */
    raw?: boolean;
}
 
/** Options for write and writeFile */
export interface CFB$WritingOptions extends CFB$CommonOptions {
    /** Output file type */
    fileType?: 'cfb' | 'zip' | 'mad';
 
    /** Override default root entry name (CFB only) */
    root?: string;
 
    /** Enable compression (ZIP only) */
    compression?: boolean;
}
 
export type CFB$Blob = number[] | Uint8Array;
 
export enum CFB$EntryType { unknown, storage, stream, lockbytes, property, root }
export enum CFB$StorageType { fat, minifat }
 
/** CFB File Entry Object */
export interface CFB$Entry {
    /** Case-sensitive internal name */
    name: string;
 
    /** CFB type (salient types: stream, storage) -- see CFB$EntryType */
    type: number;
 
    /** Raw Content (Buffer when available, Array of bytes otherwise) */
    content: CFB$Blob;
 
    /** Creation Time */
    ct?: Date;
 
    /** Modification Time */
    mt?: Date;
 
    /** Red/Black Tree color: 0 = red, 1 = black */
    color: number;
 
    /** Class ID represented as hex string */
    clsid: string;
 
    /** User-Defined State Bits */
    state: number;
 
    /** Starting Sector */
    start: number;
 
    /** Data Size */
    size: number;
 
    /** Storage location -- see CFB$StorageType */
    storage?: string;
 
    /** Content Type (used for MAD) */
    ctype?: string;
}
 
/* File object */
export interface CFB$Container {
    /* List of streams and storages */
    FullPaths: string[];
 
    /* Array of entries in the same order as FullPaths */
    FileIndex: CFB$Entry[];
 
    /* Raw Content, in chunks (Buffer when available, Array of bytes otherwise) */
    raw?: {
        header: CFB$Blob,
        sectors: CFB$Blob[];
    };
}
 
/** cfb_add options */
export interface CFB$AddOpts {
    /** Skip existence and safety checks (best for bulk write operations) */
    unsafe?: boolean;
}
 
/** General utilities */
export interface CFB$Utils {
    cfb_new(opts?: any): CFB$Container;
    cfb_add(cfb: CFB$Container, name: string, content: any, opts?: CFB$AddOpts): CFB$Entry;
    cfb_del(cfb: CFB$Container, name: string): boolean;
    cfb_mov(cfb: CFB$Container, old_name: string, new_name: string): boolean;
    cfb_gc(cfb: CFB$Container): void;
    ReadShift(size: number, t?: string): number|string;
    WarnField(hexstr: string, fld?: string): void;
    CheckField(hexstr: string, fld?: string): void;
    prep_blob(blob: any, pos?: number): CFB$Blob;
    bconcat(bufs: any[]): any;
}