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 = {
|
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
4
package-lock.json
generated
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user