From 4f8c1d09c7150e2cbc46e892fd87dcce9f476921 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sat, 26 Oct 2024 00:30:25 +0000 Subject: [PATCH] fix: use interface instead of intersection --- src/client/base.ts | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/client/base.ts b/src/client/base.ts index f875de4..46b35bd 100644 --- a/src/client/base.ts +++ b/src/client/base.ts @@ -412,7 +412,7 @@ export class BaseClient { const { locations, debug, ...env } = seyfertConfig; - const locationsFullPaths: MakeRequired>, 'base' | 'output'> = { + const locationsFullPaths: RC['locations'] = { base: locations.base, output: locations.output, }; @@ -501,17 +501,19 @@ export interface StartOptions { token: string; } +interface RCLocations extends ExtendedRCLocations { + base: string; + output: string; + commands?: string; + langs?: string; + templates?: string; + events?: string; + components?: string; +} + interface RC extends ExtendedRC { debug?: boolean; - locations: { - base: string; - output: string; - commands?: string; - langs?: string; - templates?: string; - events?: string; - components?: string; - } & ExtendedRCLocations; + locations: RCLocations; token: string; intents?: number; applicationId?: string;