mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
fix: Allow the never for config on creating an action
This commit is contained in:
@@ -23,11 +23,14 @@ export class CreatedAction<
|
||||
|
||||
static of<
|
||||
WrapperData,
|
||||
ConfigType extends Record<string, any> | Config<any, any>,
|
||||
ConfigType extends
|
||||
| Record<string, any>
|
||||
| Config<any, any>
|
||||
| Config<any, never>,
|
||||
Type extends Record<string, any> = ExtractConfigType<ConfigType>,
|
||||
>(
|
||||
metaData: Omit<ActionMetaData, "input"> & {
|
||||
input: Config<Type, WrapperData>
|
||||
input: Config<Type, WrapperData> | Config<Type, never>
|
||||
},
|
||||
fn: (options: {
|
||||
effects: Effects
|
||||
|
||||
Reference in New Issue
Block a user