Skip to content

Commit

Permalink
added: todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Pasynok committed Nov 3, 2024
1 parent f238685 commit 10e85f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/createContainer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ type Params<
) => EnableResult;
};

// todo: return enable fn ?
// todo: own change status
// // compose.up -> wait for all deps -> check enable -> set status -> start if pending
const createContainer = <
Id extends string,
API extends AnyAPI,
Expand All @@ -62,6 +61,8 @@ const createContainer = <
const params = validate(__params);
const $status = createStore<Status>('idle');

// 'fail' | 'off' <-- allowed for optDeps

return {
id: params.id,
$status,
Expand Down

0 comments on commit 10e85f0

Please sign in to comment.