Defining `TaggedError` or `TaggedClass` without parameters

Is it possible to define a TaggedError or TaggedClass without parameters?

Currently the definition requires a Record<string, any>:

export const TaggedError = <Tag extends string>(tag: Tag): new<A extends Record<string, any>>(


I am looking for a way to pass and empty A:

export class UserAdminAccount extends Data.TaggedClass("UserAdminAccount")<{}> {}
Was this page helpful?