Skip to content

Commit

Permalink
ci: fix /voice test ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Dec 31, 2024
1 parent b81ad11 commit 9447036
Show file tree
Hide file tree
Showing 16 changed files with 5,398 additions and 6,531 deletions.
2 changes: 1 addition & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"jotai": "^2.8.2",
"lucide-react": "^0.379.0",
"meilisearch": "^0.40.0",
"next": "^15.0.0-rc.0",
"next": "15.0.0-rc.0",
"next-mdx-remote-client": "^1.0.3",
"next-themes": "^0.3.0",
"overlayscrollbars": "^2.8.3",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@
"engines": {
"node": ">=20"
},
"packageManager": "pnpm@9.13.2"
"packageManager": "pnpm@9.15.2"
}
2 changes: 1 addition & 1 deletion packages/builders/src/components/button/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ComponentBuilder } from '../Component.js';
* A builder that creates API-compatible JSON data for buttons.
*/
export abstract class BaseButtonBuilder<ButtonData extends APIButtonComponent> extends ComponentBuilder<ButtonData> {
protected declare readonly data: Partial<ButtonData>;
declare protected readonly data: Partial<ButtonData>;

/**
* Sets whether this button is disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface EmojiOrLabelButtonData
extends Pick<Exclude<APIButtonComponent, APIButtonComponentWithSKUId>, 'emoji' | 'label'> {}

export class EmojiOrLabelButtonMixin {
protected declare readonly data: EmojiOrLabelButtonData;
declare protected readonly data: EmojiOrLabelButtonData;

/**
* Sets the emoji to display on this button.
Expand Down
2 changes: 1 addition & 1 deletion packages/builders/src/interactions/commands/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface CommandData
export abstract class CommandBuilder<Command extends RESTPostAPIApplicationCommandsJSONBody>
implements JSONEncodable<Command>
{
protected declare readonly data: CommandData;
declare protected readonly data: CommandData;

/**
* Sets the contexts of this command.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ChatInputCommandSubcommandGroupBuilder
extends SharedNameAndDescription
implements JSONEncodable<APIApplicationCommandSubcommandGroupOption>
{
protected declare readonly data: ChatInputCommandSubcommandGroupData & SharedNameAndDescriptionData;
declare protected readonly data: ChatInputCommandSubcommandGroupData & SharedNameAndDescriptionData;

public get options(): readonly ChatInputCommandSubcommandBuilder[] {
return (this.data.options ??= []);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface ApplicationCommandNumericOptionMinMaxValueData
* This mixin holds minimum and maximum symbols used for options.
*/
export abstract class ApplicationCommandNumericOptionMinMaxValueMixin {
protected declare readonly data: ApplicationCommandNumericOptionMinMaxValueData;
declare protected readonly data: ApplicationCommandNumericOptionMinMaxValueData;

/**
* Sets the maximum number value of this option.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface ApplicationCommandOptionChannelTypesData
* This mixin holds channel type symbols used for options.
*/
export class ApplicationCommandOptionChannelTypesMixin {
protected declare readonly data: ApplicationCommandOptionChannelTypesData;
declare protected readonly data: ApplicationCommandOptionChannelTypesData;

/**
* Adds channel types to this option.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface ApplicationCommandOptionWithAutocompleteData extends Pick<Autoc
* This mixin holds choices and autocomplete symbols used for options.
*/
export class ApplicationCommandOptionWithAutocompleteMixin {
protected declare readonly data: ApplicationCommandOptionWithAutocompleteData;
declare protected readonly data: ApplicationCommandOptionWithAutocompleteData;

/**
* Whether this option uses autocomplete.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface ApplicationCommandOptionWithChoicesData {
* This mixin holds choices and autocomplete symbols used for options.
*/
export class ApplicationCommandOptionWithChoicesMixin<ChoiceType extends number | string> {
protected declare readonly data: ApplicationCommandOptionWithChoicesData;
declare protected readonly data: ApplicationCommandOptionWithChoicesData;

/**
* Adds multiple choices to this option.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface SharedChatInputCommandOptionsData {
* @typeParam TypeAfterAddingOptions - The type this class should return after adding an option.
*/
export class SharedChatInputCommandOptions {
protected declare readonly data: SharedChatInputCommandOptionsData;
declare protected readonly data: SharedChatInputCommandOptionsData;

public get options(): readonly ApplicationCommandOptionBase[] {
return (this.data.options ??= []);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface SharedChatInputCommandSubcommandsData {
* @typeParam TypeAfterAddingSubcommands - The type this class should return after adding a subcommand or subcommand group.
*/
export class SharedChatInputCommandSubcommands {
protected declare readonly data: SharedChatInputCommandSubcommandsData;
declare protected readonly data: SharedChatInputCommandSubcommandsData;

/**
* Adds subcommand groups to this command.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export abstract class ApplicationCommandOptionBase
{
protected static readonly predicate: z.ZodTypeAny = basicOptionPredicate;

protected declare readonly data: ApplicationCommandOptionBaseData & SharedNameAndDescriptionData;
declare protected readonly data: ApplicationCommandOptionBaseData & SharedNameAndDescriptionData;

public constructor(type: ApplicationCommandOptionType) {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ChatInputCommandStringOption extends Mixin(
) {
protected static override readonly predicate = stringOptionPredicate;

protected declare readonly data: ApplicationCommandOptionBaseData &
declare protected readonly data: ApplicationCommandOptionBaseData &
ApplicationCommandOptionWithAutocompleteData &
ApplicationCommandOptionWithChoicesData &
Partial<Pick<APIApplicationCommandStringOption, 'max_length' | 'min_length'>>;
Expand Down
5 changes: 1 addition & 4 deletions packages/voice/.lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
/** @type {import('lint-staged').Config} */
module.exports = {
...require('../../.lintstagedrc.json'),
'src/**.ts': 'jest --coverage --findRelatedTests',
};
module.exports = require('../../.lintstagedrc.json');
Loading

0 comments on commit 9447036

Please sign in to comment.