Return types in funcs
parent
9b1c765a49
commit
6fac48e996
|
@ -1,8 +1,6 @@
|
|||
import uuid from 'uuid/v4';
|
||||
import { Client } from '..';
|
||||
import { RichEmbed } from '../class';
|
||||
|
||||
export default function checkLock(client: Client) {
|
||||
export default function checkLock(client: Client): void {
|
||||
setInterval(async () => {
|
||||
try {
|
||||
const moderations = await client.db.Moderation.find();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export default function dataConversion(bytes) {
|
||||
export default function dataConversion(bytes: number): string {
|
||||
const i = Math.floor(Math.log(bytes) / Math.log(1024));
|
||||
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
||||
if (bytes === 0) {
|
||||
|
|
Loading…
Reference in New Issue