Returns the value of a property on the underlying entity. Throws if the reference is not initialized.
(prop: K)
| 209 | |
| 210 | /** Returns the value of a property on the underlying entity. Throws if the reference is not initialized. */ |
| 211 | getProperty<K extends keyof T>(prop: K): T[K] { |
| 212 | return this.getEntity()[prop]; |
| 213 | } |
| 214 | |
| 215 | /** Loads the entity if needed, then returns the value of the specified property. */ |
| 216 | async loadProperty<TT extends T, P extends string = never, K extends keyof TT = keyof TT>( |
no test coverage detected