mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-02 05:23:21 +00:00
chore: Magic phantom types
This commit is contained in:
@@ -25,7 +25,7 @@ export function updateConfig<
|
||||
noRepeat?: NoRepeat<version, type>,
|
||||
noFail = false,
|
||||
): M.MigrationFn<version, type> {
|
||||
return async (effects: T.Effects) => {
|
||||
return M.migrationFn(async (effects: T.Effects) => {
|
||||
await noRepeatGuard(effects, noRepeat, async () => {
|
||||
let config = util.unwrapResultType(await getConfig({})(effects)).config;
|
||||
if (config) {
|
||||
@@ -42,7 +42,7 @@ export function updateConfig<
|
||||
}
|
||||
});
|
||||
return { configured };
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
export async function noRepeatGuard<
|
||||
|
||||
Reference in New Issue
Block a user