mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
test: exactOptionalPropertyTypes 下的 onRetire 捕获类型
This commit is contained in:
@@ -135,7 +135,7 @@ describe('sendSession submission echo', () => {
|
||||
/** Bench with an observable beginSubmission on the session face. */
|
||||
async function echoBench() {
|
||||
const b = await bench()
|
||||
const retire: { onRetire?: (retirement: unknown) => void } = {}
|
||||
const retire: { onRetire?: ((retirement: unknown) => void) | undefined } = {}
|
||||
const abandon = vi.fn()
|
||||
const beginSubmission = vi.fn((input: { onRetire?: (retirement: unknown) => void }) => {
|
||||
retire.onRetire = input.onRetire
|
||||
|
||||
Reference in New Issue
Block a user