idk
This commit is contained in:
parent
d9cf50eec1
commit
bb9b300d6f
9 changed files with 83 additions and 31 deletions
11
src/compilers/PreCompile.ts
Normal file
11
src/compilers/PreCompile.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
declare global {
|
||||
interface Map<K, V> {
|
||||
toJSON(): Record<string, V>
|
||||
}
|
||||
}
|
||||
|
||||
Map.prototype.toJSON = function () {
|
||||
const obj: any = {}
|
||||
this.forEach((value, key) => (obj[key] = value))
|
||||
return obj
|
||||
}
|
||||
Reference in a new issue