Understanding Data Tagged Error in TypeScript

Can someone please help me understand a bit better data tagged error?:
import { Data } from "effect"
 
class MissingUser extends Data.TaggedError("MissingUser")<{
  message: string
}> {}

I understand that function takes a string, then it builds a base class that has the string as a readonly tag and it returns that class so you can extend it. But how is that you can specify the type arguments AFTER the function is called? What is that syntax?
Was this page helpful?