build(deps-dev): bump @biomejs/biome from 2.3.13 to 2.3.14 (#4741)

* build(deps-dev): bump @biomejs/biome from 2.3.13 to 2.3.14

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 2.3.13 to 2.3.14.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.3.14/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.3.14
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump @biomejs/biome from 2.3.13 to 2.3.14 in /website (#4749)

* build(deps-dev): bump @types/react from 19.2.8 to 19.2.13 in /website (#4750)

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 19.2.8 to 19.2.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-version: 19.2.13
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com>

* build(deps-dev): bump @biomejs/biome from 2.3.13 to 2.3.14 in /website

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 2.3.13 to 2.3.14.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.3.14/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.3.14
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com>

* Update biome schema version

* biome format --write

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com>
This commit is contained in:
dependabot[bot]
2026-02-10 19:39:48 +01:00
committed by GitHub
co-authored by Fleny
parent 384d754e53
commit cf26d35f29
12 changed files with 129 additions and 127 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
"@discordeno/utils": "workspace:^"
},
"devDependencies": {
"@biomejs/biome": "2.3.13",
"@biomejs/biome": "2.3.14",
"@swc/cli": "^0.8.0",
"@swc/core": "^1.15.11",
"@types/chai": "^5.2.3",
+40 -38
View File
@@ -964,13 +964,14 @@ export enum DesiredPropertiesBehavior {
}
/** @private This is subject to breaking changes without notices */
export type RemoveKeyIfUndesired<Key, T, TProps extends TransformersDesiredProperties> = IsKeyDesired<
Key,
TransformersDesiredPropertiesMetadata[KeyByValue<TransformersObjects, T>]['dependencies'],
TProps[KeyByValue<TransformersObjects, T>]
> extends true
? Key
: never;
export type RemoveKeyIfUndesired<Key, T, TProps extends TransformersDesiredProperties> =
IsKeyDesired<
Key,
TransformersDesiredPropertiesMetadata[KeyByValue<TransformersObjects, T>]['dependencies'],
TProps[KeyByValue<TransformersObjects, T>]
> extends true
? Key
: never;
/** @private This is subject to breaking changes without notices */
export type GetErrorWhenUndesired<
@@ -1003,39 +1004,40 @@ export type IsObject<T> = T extends object ? (T extends Function ? false : true)
/**
* Transform a generic object properties based on the desired properties and behavior for other transformer objects in the object.
*/
export type TransformProperty<T, TProps extends TransformersDesiredProperties, TBehavior extends DesiredPropertiesBehavior> = T extends Array<infer U> // is it an array?
? // Yes, apply the desired props
TransformProperty<U, TProps, TBehavior>[]
: // No, is it a collection?
T extends Collection<infer U, infer UObj>
? // Yes, check for nested proprieties
Collection<U, TransformProperty<UObj, TProps, TBehavior>>
: // No, is it a Bot?
Equals<T, Bot> extends true
? // Yes, return a bot with the correct set of props & behavior
Bot<TProps, TBehavior>
: // No, is it a transformed object?
T extends TransformersObjects[keyof TransformersObjects]
? // Yes, apply the desired props
SetupDesiredProps<T, TProps, TBehavior>
: // No, is it an interaction resolved data member? | We need to check this here because the type itself has not way of getting the desired props
Equals<T, InteractionResolvedDataMember<TransformersDesiredProperties, DesiredPropertiesBehavior>> extends true
export type TransformProperty<T, TProps extends TransformersDesiredProperties, TBehavior extends DesiredPropertiesBehavior> =
T extends Array<infer U> // is it an array?
? // Yes, apply the desired props
TransformProperty<U, TProps, TBehavior>[]
: // No, is it a collection?
T extends Collection<infer U, infer UObj>
? // Yes, check for nested proprieties
Collection<U, TransformProperty<UObj, TProps, TBehavior>>
: // No, is it a Bot?
Equals<T, Bot> extends true
? // Yes, return a bot with the correct set of props & behavior
Bot<TProps, TBehavior>
: // No, is it a transformed object?
T extends TransformersObjects[keyof TransformersObjects]
? // Yes, apply the desired props
InteractionResolvedDataMember<TProps, TBehavior>
: // No, is it an interaction resolved data channel? | We need to check this here because the type itself has not way of getting the desired props
Equals<T, InteractionResolvedDataChannel<TransformersDesiredProperties, DesiredPropertiesBehavior>> extends true
SetupDesiredProps<T, TProps, TBehavior>
: // No, is it an interaction resolved data member? | We need to check this here because the type itself has not way of getting the desired props
Equals<T, InteractionResolvedDataMember<TransformersDesiredProperties, DesiredPropertiesBehavior>> extends true
? // Yes, apply the desired props
InteractionResolvedDataChannel<TProps, TBehavior>
: // Is it a function?
T extends (...args: infer P) => Promise<infer R>
? // Yes, we need to ensure we transform the return type as well
(...args: P) => Promise<TransformProperty<R, TProps, TBehavior>>
: // Is it an object?
IsObject<T> extends true
? // Yes, we need to ensure we transform the nested properties as well
{ [K in keyof T]: TransformProperty<T[K], TProps, TBehavior> }
: // No, this is a normal value such as string / bigint / number
T;
InteractionResolvedDataMember<TProps, TBehavior>
: // No, is it an interaction resolved data channel? | We need to check this here because the type itself has not way of getting the desired props
Equals<T, InteractionResolvedDataChannel<TransformersDesiredProperties, DesiredPropertiesBehavior>> extends true
? // Yes, apply the desired props
InteractionResolvedDataChannel<TProps, TBehavior>
: // Is it a function?
T extends (...args: infer P) => Promise<infer R>
? // Yes, we need to ensure we transform the return type as well
(...args: P) => Promise<TransformProperty<R, TProps, TBehavior>>
: // Is it an object?
IsObject<T> extends true
? // Yes, we need to ensure we transform the nested properties as well
{ [K in keyof T]: TransformProperty<T[K], TProps, TBehavior> }
: // No, this is a normal value such as string / bigint / number
T;
/**
* Apply desired properties to an object.