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

4
package-lock.json generated
View File

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

View File

@@ -1,6 +1,6 @@
{ {
"name": "start-sdk", "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.", "description": "For making the patterns that are wanted in making services for the startOS.",
"main": "./lib/index.js", "main": "./lib/index.js",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",