Skip to main content
Go to Latest
function migrations.updateConfig
import { migrations } from "https://deno.land/x/embassyd_sdk@v0.3.3.0.5/compat/mod.ts";
const { updateConfig } = migrations;

Type Parameters

version extends string
type extends "up" | "down"

Parameters

fn: (config: T.Config, effects: T.Effects) => T.Config | Promise<T.Config>

function making desired modifications to the config

configured: boolean

whether or not the service should be considered "configured"

optional
noRepeat: NoRepeat<version, type>

(optional) supply the version and type of the migration

optional
noFail = [UNSUPPORTED]

(optional, default:false) whether or not to fail the migration if fn throws an error

Returns

M.MigrationFn<version, type>

a migraion function