mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: 22 adding in the init, uninit helpers
This commit is contained in:
@@ -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
4
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user