will generate the prisma properties for a given schema based on the properties object

  • Parameters

    • typeName: string

      the name of the type, will be used as prefix for the properties

    • properties: { [key: string]: JSONSchema7Definition } = {}

      the properties object

    • required: string[]
    • visited: WeakSet<any>

      a weakset to keep track of visited types

    • prefix: string = ""

      the prefix for the properties

    • propPrefix: string = ""

      the prefix for the properties of the properties

    • Optionaloptions: PropertiesToPrismaOptions

    Returns PropertiesToPrismaReturnType

    the string which contains the prisma properties for the given schema