Skip to content

Commit

Permalink
test: revert overfix from lint
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Mar 25, 2024
1 parent 2510604 commit b97cb8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/type-plus/src/class/AnyConstructor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import { test } from '@jest/globals'
import type { AnyConstructor } from '../index.js'

test('basic', () => {
const a = (() => {}) as any as AnyConstructor
// biome-ignore lint/complexity/useArrowFunction: on purpose
const a = (function () { }) as any as AnyConstructor

new a()
})

test('specify params with tuple', () => {
const a = (() => {}) as any as AnyConstructor<[count: number, value: string]>
// biome-ignore lint/complexity/useArrowFunction: on purpose
const a = (function () { }) as any as AnyConstructor<[count: number, value: string]>

new a(1, 'a')
})

0 comments on commit b97cb8c

Please sign in to comment.