Comparing version 0.2.11 to 0.2.12
declare module "like-ar"{ | ||
type ObjectWithArrayFunctions<T>={ | ||
forEach:( callback:(value:T , key:string)=>void ) => ObjectWithArrayFunctions<T> | ||
map :<U>( callback:(value:T, key:string)=>U ) => ObjectWithArrayFunctions<U> | ||
filter :( callback:(value:T , key:string)=>boolean) => ObjectWithArrayFunctions<T> | ||
build :<U>( callback:(value:T, key:string)=>{[key:string]:U}) => ObjectWithArrayFunctions<U> | ||
keys :() => string[] | ||
type ObjectWithArrayFunctions<T, K extends string|number|symbol>={ | ||
forEach: ( callback:(value:T, key:K)=>void ) => ObjectWithArrayFunctions<T,K> | ||
map :<U>( callback:(value:T, key:K)=>U ) => ObjectWithArrayFunctions<U,K> | ||
filter : ( callback:(value:T, key:K)=>boolean) => ObjectWithArrayFunctions<T,K> | ||
build :<U,K2 extends keyof {}>(callback:(value:T,key:K)=>{[key in K2]:U}) => ObjectWithArrayFunctions<U,K2> | ||
keys :() => K[] | ||
array :() => T[] | ||
plain :() => {[key:string]:T} | ||
plain :() => {[key in K]:T} | ||
join :(separator:string) => string | ||
} | ||
function likeAr<T>(o:{[key:string]:T}):ObjectWithArrayFunctions<T> | ||
function likeAr<T, K extends string|number|symbol>(o:{[key in K]: T}):ObjectWithArrayFunctions<T, K> | ||
namespace likeAr{ | ||
@@ -14,0 +14,0 @@ function toPlainObject<T>(array:[string, T][]):{[key:string]:T} |
{ | ||
"name": "like-ar", | ||
"description": "Using objects like arrays with map, filter, forEach and others coming soon.", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"author": "Codenautas <codenautas@googlegroups.com>", | ||
@@ -6,0 +6,0 @@ "repository": "codenautas/like-ar", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13633