chore: 22 adding in the init, uninit helpers

This commit is contained in:
BluJ
2023-04-14 17:56:09 -06:00
parent f936f5ce35
commit 78076387ef
3 changed files with 8 additions and 5 deletions

View File

@@ -4,12 +4,15 @@ declare const ActionProof: unique symbol;
export type ActionReceipt = {
[ActionProof]: never;
};
export function noActions(): ActionReceipt {
return {} as ActionReceipt;
}
declare const MigrationProof: unique symbol;
export type MigrationReceipt = {
[MigrationProof]: never;
};
export function noMigration(): MigrationReceipt {
export function noMigrationsUp(): MigrationReceipt {
return {} as MigrationReceipt;
}
export function migrationUp(fn: () => Promise<unknown>): MigrationReceipt {
@@ -21,7 +24,7 @@ declare const MigrationDownProof: unique symbol;
export type MigrationDownReceipt = {
[MigrationDownProof]: never;
};
export function noMigrationDown(): MigrationDownReceipt {
export function noMigrationsDown(): MigrationDownReceipt {
return {} as MigrationDownReceipt;
}
export function migrationDown(

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "start-sdk",
"version": "0.4.0-lib0.charlie21",
"version": "0.4.0-lib0.charlie22",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "start-sdk",
"version": "0.4.0-lib0.charlie21",
"version": "0.4.0-lib0.charlie22",
"license": "MIT",
"dependencies": {
"@iarna/toml": "^2.2.5",

View File

@@ -1,6 +1,6 @@
{
"name": "start-sdk",
"version": "0.4.0-lib0.charlie21",
"version": "0.4.0-lib0.charlie22",
"description": "For making the patterns that are wanted in making services for the startOS.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",