YousefED / typescript-json-schema

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

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

Open melodyJie opened 8 months ago

melodyJie commented 8 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