(className: string)
| 1485 | |
| 1486 | // Checks if a given class is in the schema. |
| 1487 | hasClass(className: string) { |
| 1488 | if (this.schemaData[className]) { |
| 1489 | return Promise.resolve(true); |
| 1490 | } |
| 1491 | return this.reloadData().then(() => !!this.schemaData[className]); |
| 1492 | } |
| 1493 | } |
| 1494 | |
| 1495 | // Returns a promise for a new Schema. |
no test coverage detected