Skip to content

Infer Number Props

When enabled, TEXT code-only props whose default and all examples parse as valid numbers (no leading zeros) are emitted as NumberProp instead of StringProp.

Options

  • Type: boolean
  • Default: false
  • Effect: When true, text code-only props with purely numeric values are inferred as number props. When false, all text code-only props remain string props.

Path

config.processing.inferNumberProps

Example

config:
processing:
inferNumberProps: true # Infer numeric code-only props as NumberProp