fix: comply with es2020 standards
This commit is contained in:
parent
dc786cd420
commit
9bfe3310cc
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
||||||
import xxhash from "xxhash-wasm"
|
import xxhash from "xxhash-wasm"
|
||||||
|
|
||||||
const { h64 } = await xxhash()
|
let h64: CallableFunction;
|
||||||
|
(async () => {
|
||||||
|
h64 = (await xxhash()).h64;
|
||||||
|
})();
|
||||||
|
|
||||||
export default (seed: string): string => {
|
export default (seed: string): string => {
|
||||||
const lightness = 50
|
const lightness = 50
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue