Skip to content

Commit 5c07bf3

Browse files
fix: resolve TS type errors, duplicate exports, and lint issues
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0c8ea07 commit 5c07bf3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/utils/deprecation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ export function deprecated<T extends (...args: unknown[]) => unknown>(
109109
* whenever the class is instantiated.
110110
*/
111111
export function deprecatedClass(options: DeprecationOptions = {}) {
112-
return <T extends new (...args: unknown[]) => object>(Base: T, ctx?: { name?: string }): T => {
112+
// 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 => {
113117
const name = ctx?.name ?? Base.name;
114118
return class extends Base {
115119
constructor(...args: any[]) {

0 commit comments

Comments
 (0)