mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 03:00:35 +00:00
Restructure typedef placement
This commit is contained in:
parent
cc563f77c5
commit
3c5a227ea0
2 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@ let parse;
|
||||||
|
|
||||||
const customDocs = require('../custom/index');
|
const customDocs = require('../custom/index');
|
||||||
|
|
||||||
const GEN_VERSION = 5;
|
const GEN_VERSION = 6;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fs = require('fs-extra');
|
fs = require('fs-extra');
|
||||||
|
|
@ -55,7 +55,7 @@ function clean() {
|
||||||
const cleaned = {
|
const cleaned = {
|
||||||
classes: {},
|
classes: {},
|
||||||
interfaces: {},
|
interfaces: {},
|
||||||
typedefs: [],
|
typedefs: {},
|
||||||
};
|
};
|
||||||
for (const item of json) {
|
for (const item of json) {
|
||||||
if (item.kind === 'class') {
|
if (item.kind === 'class') {
|
||||||
|
|
@ -89,7 +89,7 @@ function clean() {
|
||||||
item.returns = newReturns;
|
item.returns = newReturns;
|
||||||
obj.functions.push(item);
|
obj.functions.push(item);
|
||||||
} else if (item.kind === 'typedef') {
|
} else if (item.kind === 'typedef') {
|
||||||
cleaned.typedefs.push(item);
|
cleaned.typedefs[item.longname] = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
json = cleaned;
|
json = cleaned;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue