Comparing version 1.22.0 to 1.22.1
@@ -1,3 +0,2 @@ | ||
export declare function prop<T, K extends keyof T>(prop: K): (data: T) => T[K]; | ||
export declare function prop<K extends PropertyKey>(prop: K): <T>(data: T) => K extends keyof T ? T[K] : undefined; | ||
export declare const prop: <T, K extends keyof T>(propName: K) => ({ [propName]: value }: T) => T[K]; | ||
//# sourceMappingURL=prop.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.prop = void 0; | ||
function prop(prop) { | ||
return function (data) { return data[prop]; }; | ||
} | ||
var prop = function (propName) { | ||
return function (_a) { | ||
var _b = propName, value = _a[_b]; | ||
return value; | ||
}; | ||
}; | ||
exports.prop = prop; |
@@ -1,3 +0,2 @@ | ||
export declare function prop<T, K extends keyof T>(prop: K): (data: T) => T[K]; | ||
export declare function prop<K extends PropertyKey>(prop: K): <T>(data: T) => K extends keyof T ? T[K] : undefined; | ||
export declare const prop: <T, K extends keyof T>(propName: K) => ({ [propName]: value }: T) => T[K]; | ||
//# sourceMappingURL=prop.d.ts.map |
@@ -1,3 +0,6 @@ | ||
export function prop(prop) { | ||
return function (data) { return data[prop]; }; | ||
} | ||
export var prop = function (propName) { | ||
return function (_a) { | ||
var _b = propName, value = _a[_b]; | ||
return value; | ||
}; | ||
}; |
{ | ||
"name": "remeda", | ||
"version": "1.22.0", | ||
"version": "1.22.1", | ||
"description": "A utility library for JavaScript and Typescript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5934
410772