mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-02 09:00:07 +00:00
* refactor: minify api.json by shortening keys * fix: links to other packages * refactor: get doclink from canonicalReference, not model * fix: types * fix: again * fix: @link tags with alt texts
10 lines
293 B
TypeScript
10 lines
293 B
TypeScript
import { ApiPackage } from '@discordjs/api-extractor-model';
|
|
import type { ApiModel } from '@discordjs/api-extractor-model';
|
|
|
|
export const addPackageToModel = (model: ApiModel, data: any) => {
|
|
const apiPackage = ApiPackage.loadFromJson(data);
|
|
|
|
model.addMember(apiPackage);
|
|
return model;
|
|
};
|