Turning TypeScript Type into an Effect Schema

Imagine a basic typescript type such as:
type SomeSchema<T extends SomeSchemaType, U extends SomeOtherSchemaType> = {
  id: string;
  type: T;
  payload: U;
// ... some other props
};


If I want to turn that into an effect schema, am I supposed to use that (https://github.com/Effect-TS/effect/tree/main/packages/schema#declaring-schemas-for-type-constructors) or is there another expected way ?
Was this page helpful?