Function flattenObjectType

  • Exports the used Types of an Object. The result is the a Map, where the key represents the path and the value represents the type of the element (stored in the path)

    Author

    M.Karkowski

    Export

    Returns

    key = path; value = type of element as string;

    Parameters

    • data: any

      The Data to check

    • Optional options: {
          maxDepth?: number;
          onlyPathToSimpleValue?: boolean;
          prefix?: string;
          splitchar?: string;
      } = {}
      • Optional maxDepth?: number
      • Optional onlyPathToSimpleValue?: boolean
      • Optional prefix?: string
      • Optional splitchar?: string

    Returns Map<string, string>

Generated using TypeDoc