mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
Delint
This commit is contained in:
parent
190ccb6f00
commit
f2e67604e7
@ -35,7 +35,7 @@ function getDaysArray(): string[] {
|
||||
|
||||
interface IProps {
|
||||
ts: number;
|
||||
forExport?: boolean
|
||||
forExport?: boolean;
|
||||
}
|
||||
|
||||
@replaceableComponent("views.messages.DateSeparator")
|
||||
|
@ -55,8 +55,8 @@ class Crc32 {
|
||||
}
|
||||
|
||||
type DataHelper = {
|
||||
array: Uint8Array,
|
||||
view: DataView,
|
||||
array: Uint8Array;
|
||||
view: DataView;
|
||||
};
|
||||
|
||||
const getDataHelper = (byteLength: number): DataHelper => {
|
||||
@ -68,24 +68,24 @@ const getDataHelper = (byteLength: number): DataHelper => {
|
||||
};
|
||||
|
||||
type FileLike = File & {
|
||||
directory: string,
|
||||
comment: string,
|
||||
stream(): ReadableStream,
|
||||
directory: string;
|
||||
comment: string;
|
||||
stream(): ReadableStream;
|
||||
};
|
||||
|
||||
type ZipObj = {
|
||||
crc?: Crc32,
|
||||
uncompressedLength: number,
|
||||
compressedLength: number,
|
||||
ctrl: ReadableStreamDefaultController,
|
||||
writeFooter: Function,
|
||||
writeHeader: Function,
|
||||
reader?: ReadableStreamDefaultReader,
|
||||
offset: number
|
||||
header?: DataHelper,
|
||||
fileLike: FileLike,
|
||||
level: number,
|
||||
directory: boolean,
|
||||
uncompressedLength: number;
|
||||
compressedLength: number;
|
||||
ctrl: ReadableStreamDefaultController;
|
||||
writeFooter: Function;
|
||||
writeHeader: Function;
|
||||
reader?: ReadableStreamDefaultReader;
|
||||
offset: number;
|
||||
header?: DataHelper;
|
||||
fileLike: FileLike;
|
||||
level: number;
|
||||
directory: boolean;
|
||||
};
|
||||
|
||||
const pump = (zipObj: ZipObj) => zipObj.reader ? zipObj.reader.read().then(chunk => {
|
||||
|
Loading…
Reference in New Issue
Block a user