We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c8ea07 commit 5c07bf3Copy full SHA for 5c07bf3
1 file changed
src/utils/deprecation.ts
@@ -109,7 +109,11 @@ export function deprecated<T extends (...args: unknown[]) => unknown>(
109
* whenever the class is instantiated.
110
*/
111
export function deprecatedClass(options: DeprecationOptions = {}) {
112
- return <T extends new (...args: unknown[]) => object>(Base: T, ctx?: { name?: string }): T => {
+ // biome-ignore lint/suspicious/noExplicitAny: mixin class requires any[] per TypeScript spec
113
+ return <T extends new (...args: any[]) => object>(
114
+ Base: T,
115
+ ctx?: { name?: string },
116
+ ): T => {
117
const name = ctx?.name ?? Base.name;
118
return class extends Base {
119
constructor(...args: any[]) {
0 commit comments