* Check if a property has an index of a specific type. * @param label The element label. * @param property The property name. * @param type The index type to check for. * @returns True if the property has an index of the specified type.
(label: string, property: string, type: IndexConfig["type"])
| 70 | * @returns True if the property has an index of the specified type. |
| 71 | */ |
| 72 | public hasIndexOfType(label: string, property: string, type: IndexConfig["type"]): boolean { |
| 73 | const config = this.getIndexConfig(label, property); |
| 74 | return config?.type === type; |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Check if a property has a unique index constraint. |
no test coverage detected