(path: string | readonly string[], ignoreParent?: boolean)
| 107 | // TODO: TYPE strict key check? |
| 108 | // get(path: string | string[], ignoreParent?: boolean): ModelOption; |
| 109 | get(path: string | readonly string[], ignoreParent?: boolean): ModelOption { |
| 110 | if (path == null) { |
| 111 | return this.option; |
| 112 | } |
| 113 | |
| 114 | return this._doGet( |
| 115 | this.parsePath(path), |
| 116 | !ignoreParent && this.parentModel |
| 117 | ); |
| 118 | } |
| 119 | |
| 120 | getShallow<R extends keyof Opt>( |
| 121 | key: R, ignoreParent?: boolean |