mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 04:17:19 +00:00
fix(types): fix typeerror
This commit is contained in:
@@ -19,7 +19,7 @@ export type Parameters = {
|
|||||||
idleMessage?: string;
|
idleMessage?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const PARAMETERS: Array<
|
export type IParameter = Array<
|
||||||
{ deprecated?: boolean } & (
|
{ deprecated?: boolean } & (
|
||||||
| {
|
| {
|
||||||
parameter: string;
|
parameter: string;
|
||||||
@@ -53,7 +53,9 @@ export const PARAMETERS: Array<
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
> = [
|
>;
|
||||||
|
|
||||||
|
export const PARAMETERS: IParameter = [
|
||||||
{
|
{
|
||||||
parameter: "theme",
|
parameter: "theme",
|
||||||
type: "list",
|
type: "list",
|
||||||
@@ -188,4 +190,4 @@ export const PARAMETERS: Array<
|
|||||||
description: "Hides your discriminator. (DEPRECATED, RIP)",
|
description: "Hides your discriminator. (DEPRECATED, RIP)",
|
||||||
deprecated: true,
|
deprecated: true,
|
||||||
},
|
},
|
||||||
].sort((a, b) => b.type.localeCompare(a.type));
|
].sort((a, b) => b.type.localeCompare(a.type)) as IParameter;
|
||||||
|
|||||||
Reference in New Issue
Block a user