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 { locations, debug, ...env } = seyfertConfig;
|
||||||
|
|
||||||
const locationsFullPaths: MakeRequired<Partial<Record<keyof RC['locations'], string>>, 'base' | 'output'> = {
|
const locationsFullPaths: RC['locations'] = {
|
||||||
base: locations.base,
|
base: locations.base,
|
||||||
output: locations.output,
|
output: locations.output,
|
||||||
};
|
};
|
||||||
@ -501,17 +501,19 @@ export interface StartOptions {
|
|||||||
token: string;
|
token: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface RCLocations extends ExtendedRCLocations {
|
||||||
|
base: string;
|
||||||
|
output: string;
|
||||||
|
commands?: string;
|
||||||
|
langs?: string;
|
||||||
|
templates?: string;
|
||||||
|
events?: string;
|
||||||
|
components?: string;
|
||||||
|
}
|
||||||
|
|
||||||
interface RC extends ExtendedRC {
|
interface RC extends ExtendedRC {
|
||||||
debug?: boolean;
|
debug?: boolean;
|
||||||
locations: {
|
locations: RCLocations;
|
||||||
base: string;
|
|
||||||
output: string;
|
|
||||||
commands?: string;
|
|
||||||
langs?: string;
|
|
||||||
templates?: string;
|
|
||||||
events?: string;
|
|
||||||
components?: string;
|
|
||||||
} & ExtendedRCLocations;
|
|
||||||
token: string;
|
token: string;
|
||||||
intents?: number;
|
intents?: number;
|
||||||
applicationId?: string;
|
applicationId?: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user