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