Skip to content

Commit

Permalink
add --export-types to playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli Oshinsky authored and astahmer committed Aug 18, 2023
1 parent 9a25ee0 commit c354f32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playground/src/components/OptionsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const schema = z.object({
isMediaTypeAllowed: z.string(),
useMainResponseDescriptionAsEndpointDefinitionFallback: z.boolean(),
shouldExportAllSchemas: z.boolean(),
shouldExportAllTypes: z.boolean(),
withImplicitRequiredProps: z.boolean(),
withDeprecatedEndpoints: z.boolean(),
groupStrategy: z.enum(["none", "tag", "method", "tag-file", "method-file"]).default("none"),
Expand All @@ -29,6 +30,7 @@ export const defaultOptionValues = {
useMainResponseDescriptionAsEndpointDefinitionFallback: false,
shouldExportAllSchemas: false,
withImplicitRequiredProps: false,
shouldExportAllTypes: false,
withDeprecatedEndpoints: false,
groupStrategy: "none",
complexityThreshold: 4,
Expand All @@ -49,6 +51,7 @@ export const OptionsForm = (props: FormProps<OptionsFormValues>) => {
options={[
{ label: "Without alias ?", value: "noWithAlias" },
{ label: "Should export all schemas ?", value: "shouldExportAllSchemas" },
{ label: "Should export types for each schema ?", value: "shouldExportAllTypes" },
{ label: "With implicit required props ?", value: "withImplicitRequiredProps" },
{ label: "With deprecated endpoints ?", value: "withDeprecatedEndpoints" },
{
Expand Down

1 comment on commit c354f32

@vercel
Copy link

@vercel vercel bot commented on c354f32 Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.