mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Update to fix build
This commit is contained in:
@@ -4,7 +4,7 @@ import { Utils, utils } from "../util"
|
|||||||
|
|
||||||
export class CreatedAction<WrapperData, Type extends Record<string, any>> {
|
export class CreatedAction<WrapperData, Type extends Record<string, any>> {
|
||||||
private constructor(
|
private constructor(
|
||||||
private myMetaData: Omit<ActionMetaData, "input"> & {
|
public readonly myMetaData: Omit<ActionMetaData, "input"> & {
|
||||||
input: Config<Type, WrapperData, never>
|
input: Config<Type, WrapperData, never>
|
||||||
},
|
},
|
||||||
readonly fn: (options: {
|
readonly fn: (options: {
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ export function setupActions(...createdActions: CreatedAction<any, any>[]) {
|
|||||||
get actions() {
|
get actions() {
|
||||||
const actions: Record<string, ExportedAction> = {}
|
const actions: Record<string, ExportedAction> = {}
|
||||||
for (const action of createdActions) {
|
for (const action of createdActions) {
|
||||||
actions[action.metaData.id] = action.exportedAction
|
actions[action.myMetaData.id] = action.exportedAction
|
||||||
}
|
}
|
||||||
return actions
|
return actions
|
||||||
},
|
},
|
||||||
get actionsMetadata() {
|
get actionsMetadata() {
|
||||||
return createdActions.map((x) => x.metaData)
|
return createdActions.map((x) => x.myMetaData)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user