drimion 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js
CHANGED
|
@@ -245,10 +245,10 @@ export abstract class GettersAndSetters<Props> {
|
|
|
245
245
|
* const raw = stringVo.get('value'); // 'hello'
|
|
246
246
|
* ```
|
|
247
247
|
*/
|
|
248
|
-
public get<Key extends keyof Props>(key: Key):
|
|
248
|
+
public get<Key extends keyof Props>(key: Key): Props[Key];
|
|
249
249
|
public get(
|
|
250
250
|
key: "value",
|
|
251
|
-
):
|
|
251
|
+
): "value" extends keyof Props ? Props["value"] : Props;
|
|
252
252
|
/** biome-ignore lint/suspicious/noExplicitAny: TS cannot correlate overload branches with runtime narrowing. */
|
|
253
253
|
public get(key: any): any {
|
|
254
254
|
if (this.config.disableGetters) {
|