Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Import declaration conflicts with local declaration of ‘HeadlineProps’. #24

Open
lmestel opened this issue Nov 14, 2023 · 0 comments

Comments

@lmestel
Copy link
Contributor

lmestel commented Nov 14, 2023

Schema:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://schema.encore.de/headline.schema.json",
  "title": "Headline",
  "description": "Headline",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "highlight": {
          "title": "Highlight?",
          "description": "Highlight the headline?",
          "type": "boolean",
          "default": false
        },
        "animation": {
          "title": "Animated?",
          "description": "Animate the headline?",
          "type": "boolean",
          "default": false
        },
        "switchOrder": {
          "type": "boolean",
          "title": "Switch order?",
          "description": "Switch order of headline and subheadline",
          "default": false
        }
      }
    },
    {
      "$ref": "http://schema.kickstartds.com/base/headline.schema.json"
    }
  ]
}

Generated Types:

import type {HeadlineProps} from "@kickstartds/base/lib/headline/typing";

/**
 * Headline
 */
export type HeadlineProps = {
  highlight?: Highlight;
  animation?: Animated;
  switchOrder?: SwitchOrder;
} & HeadlineProps;
/**
 * Highlight the headline?
 */
export type Highlight = boolean;
/**
 * Animate the headline?
 */
export type Animated = boolean;
/**
 * Switch order of headline and subheadline
 */
export type SwitchOrder = boolean;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant