Skip to content

Commit

Permalink
feat(@xen-orchestra/rest-api): migrate vms/:id/start
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuRA committed Feb 28, 2025
1 parent 9033577 commit 5cfedeb
Show file tree
Hide file tree
Showing 12 changed files with 182 additions and 78 deletions.
4 changes: 4 additions & 0 deletions @vates/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"./common": {
"default": "./dist/common.mjs",
"types": "./dist/common.d.mts"
},
"./lib/vates/*": {
"default": "./dist/lib/vates-*.mjs",
"type": "./dist/lib/vates-*.d.mts"
}
},
"type": "module",
Expand Down
7 changes: 7 additions & 0 deletions @vates/types/src/lib/vates-task.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Branded } from '../common.mjs'

export type Task = {
id: Branded<'task'>

run: <T>(fn: () => T) => Promise<T>
}
Loading

0 comments on commit 5cfedeb

Please sign in to comment.