Use a 3rd party type in @effect/schema
How do I use a 3rd-party type in @effect/schema? In this example, I want to use the
span key on GridColProps type from my UI library:spanimport type { GridColProps } from "@mantine/core";
export const CollectionField = S.Struct({
name: S.String,
label: S.String,
span: S.optional(GridColProps['span']) // Error - Type '(self: All) => optional<All>' is not assignable to type 'Schema.All | PropertySignature.All<PropertyKey>'.
});