refactor(codemode): simplify tools types (#36941)
This commit is contained in:
parent
fca3bca19d
commit
563f6a65de
8 changed files with 77 additions and 93 deletions
5
packages/codemode/src/tools.ts
Normal file
5
packages/codemode/src/tools.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import type { Definition } from "./tool.js"
|
||||
|
||||
export type Tools<R = never> = {
|
||||
readonly [name: string]: Definition<R> | Tools<R>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue