chore: Update the types of config

This commit is contained in:
BluJ
2023-05-03 07:47:21 -06:00
parent 31a0988eef
commit 31c2131ca9
11 changed files with 185 additions and 138 deletions

View File

@@ -4,7 +4,10 @@ import { Utils, utils } from "../util"
export class CreatedAction<
WrapperData,
ConfigType extends Record<string, any> | Config<any, any>,
ConfigType extends
| Record<string, any>
| Config<any, WrapperData>
| Config<any, never>,
Type extends Record<string, any> = ExtractConfigType<ConfigType>,
> {
private constructor(