mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 04:11:57 +00:00
chore: Update types
This commit is contained in:
@@ -8,13 +8,9 @@ export function setupActions(...createdActions: CreatedAction<any, any>[]) {
|
||||
actions[action.metaData.id] = action.exportedAction;
|
||||
}
|
||||
|
||||
const initializeActions = async (effects: Effects) => {
|
||||
for (const action of createdActions) {
|
||||
action.exportAction(effects);
|
||||
}
|
||||
};
|
||||
const actionsMetadata = createdActions.map((x) => x.metaData);
|
||||
return {
|
||||
actions,
|
||||
initializeActions,
|
||||
actionsMetadata,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user