mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: use interface instead of intersection
This commit is contained in:
parent
00c96e6c54
commit
4f8c1d09c7
@ -412,7 +412,7 @@ export class BaseClient {
|
||||
|
||||
const { locations, debug, ...env } = seyfertConfig;
|
||||
|
||||
const locationsFullPaths: MakeRequired<Partial<Record<keyof RC['locations'], string>>, 'base' | 'output'> = {
|
||||
const locationsFullPaths: RC['locations'] = {
|
||||
base: locations.base,
|
||||
output: locations.output,
|
||||
};
|
||||
@ -501,9 +501,7 @@ export interface StartOptions {
|
||||
token: string;
|
||||
}
|
||||
|
||||
interface RC extends ExtendedRC {
|
||||
debug?: boolean;
|
||||
locations: {
|
||||
interface RCLocations extends ExtendedRCLocations {
|
||||
base: string;
|
||||
output: string;
|
||||
commands?: string;
|
||||
@ -511,7 +509,11 @@ interface RC extends ExtendedRC {
|
||||
templates?: string;
|
||||
events?: string;
|
||||
components?: string;
|
||||
} & ExtendedRCLocations;
|
||||
}
|
||||
|
||||
interface RC extends ExtendedRC {
|
||||
debug?: boolean;
|
||||
locations: RCLocations;
|
||||
token: string;
|
||||
intents?: number;
|
||||
applicationId?: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user