From 02222361f1fe18445c46e66470d84f4639df2937 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 2 Jul 2022 19:28:35 +1000 Subject: Typescript-json-schema does not crawl extends --- api/src/routes/channels/#channel_id/permissions.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'api/src') diff --git a/api/src/routes/channels/#channel_id/permissions.ts b/api/src/routes/channels/#channel_id/permissions.ts index 2eded853..adf3cc40 100644 --- a/api/src/routes/channels/#channel_id/permissions.ts +++ b/api/src/routes/channels/#channel_id/permissions.ts @@ -16,7 +16,14 @@ const router: Router = Router(); // TODO: Only permissions your bot has in the guild or channel can be allowed/denied (unless your bot has a MANAGE_ROLES overwrite in the channel) -export interface ChannelPermissionOverwriteSchema extends ChannelPermissionOverwrite {} +// export interface ChannelPermissionOverwriteSchema extends ChannelPermissionOverwrite {} +// TODO: typescript-json-schema does not like extending types +export interface ChannelPermissionOverwriteSchema { + allow: string; + deny: string; + id: string; + type: ChannelPermissionOverwriteType; +} router.put( "/:overwrite_id", -- cgit 1.4.1