fix import properly

This commit is contained in:
Ulf Gebhardt 2023-06-06 13:06:24 +02:00
parent 18a4829ea6
commit 8545b2b9c5
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/ban-types */
declare module 'random-bigint' {
export function random(bits: number, cb?: (err: Error, num: BigInt) => void): BigInt
// eslint-disable-next-line import/no-default-export
export default random
function random(bits: number, cb?: (err: Error, num: BigInt) => void): BigInt
export = random
}

View File

@ -70,7 +70,7 @@ import { communityDbUser } from '@/util/communityUser'
import { hasElopageBuys } from '@/util/hasElopageBuys'
import { getTimeDurationObject, printTimeDuration } from '@/util/time'
import { random } from 'random-bigint'
import random from 'random-bigint'
import { FULL_CREATION_AVAILABLE } from './const/const'
import { getUserCreations } from './util/creations'