YousefED / typescript-json-schema

Generate json-schema from your Typescript sources
BSD 3-Clause "New" or "Revised" License
3.17k stars 323 forks source link

Error when use "[key: `data-${string}`]: string;" #585

Open melodyJie opened 10 months ago

melodyJie commented 10 months ago

Case:

export interface ComponentProps {
  /**
   * @TJS-ignore
   */
  [key: `data-${string}`]: string;
}

Error:

Error: error: Error: Not supported: IndexSignatureDeclaration with index symbol other than a number or a string

https://github.com/ant-design/ant-design/blob/master/components/button/button.tsx#L46