Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: intercom/contentful-typescript-codegen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.1
Choose a base ref
...
head repository: intercom/contentful-typescript-codegen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.1.0
Choose a head ref
  • 1 commit
  • 11 files changed
  • 1 contributor

Commits on Apr 16, 2020

  1. feat: add support for locales=* Contentful responses (#24)

    Fixes #20
    
    ## Overview
    Add a new `--localization` flag. When enabled, generated fields will wrapped in `LocalizedField` helper , for example:
    
    ```ts
          export interface IMyContentTypeFields {
            /** Array field */
            arrayField: LocalizedField<(\"one\" | \"of\" | \"the\" | \"above\")[]>
          }
    ```
    
    This flag is very useful when entries  are being fetched with `locale="*"`.
    
    ## Notes
    * `field.required` is ignored, because contentful api ignores it as well.
    * we have to use a custom localized version of `Asset`
    zernie authored Apr 16, 2020
    Configuration menu
    Copy the full SHA
    0a13f48 View commit details
    Browse the repository at this point in the history
Loading