Latest
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267type Modules = 'rambda' | 'ramda' | 'lodash' | 'fonction'type ExcludeModules = Exclude<Modules, 'fonction'>type Api = { [k: string]: | { [m in Modules]?: string } | ExcludeModules[]}
const ALL_MODULES: ExcludeModules[] = ['rambda', 'ramda', 'lodash']const LAMBDAS: ExcludeModules[] = ['rambda', 'ramda']const api: Api = { advance: {}, add: ALL_MODULES, and: LAMBDAS, chunk: { lodash: 'chunk' }, constructorName: [], dec: LAMBDAS, F: LAMBDAS, head: { ramda: 'head', rambda: 'head', lodash: 'first' }, flattenDeep: { lodash: 'flattenDeep', rambda: 'flatten', ramda: 'flatten' }, gt: ['ramda', 'lodash'], gte: ['ramda', 'lodash'], has: ALL_MODULES, init: ALL_MODULES, identity: ALL_MODULES, inc: LAMBDAS, K: {}, lt: ['ramda', 'lodash'], lte: ['ramda', 'lodash'], not: LAMBDAS, N: { lodash: 'not', rambda: 'not', ramda: 'not' }, NN: {}, or: LAMBDAS, prepend: LAMBDAS, product: LAMBDAS, props: { rambda: 'prop', ramda: 'prop', lodash: 'get' }, replaceAll: {}, sum: ALL_MODULES, T: { rambda: 'T', ramda: 'T', lodash: 'stubTrue' }, tail: ALL_MODULES, xor: LAMBDAS, subtract: ALL_MODULES, multiply: ALL_MODULES, divide: ALL_MODULES, adjust: { ramda: 'adjust', rambda: 'adjust', fonction: undefined }, all: { ramda: 'all', rambda: 'all', fonction: undefined }, allPass: { ramda: 'allPass', rambda: 'allPass', fonction: undefined }, any: { ramda: 'any', rambda: 'any', fonction: undefined }, anyPass: { ramda: 'anyPass', rambda: 'anyPass', fonction: undefined }, append: LAMBDAS, applySpec: { ramda: 'applySpec', rambda: 'applySpec', fonction: undefined }, assoc: { ramda: 'assoc', rambda: 'assoc', fonction: undefined }, clone: { ramda: 'clone', rambda: 'clone', lodash: 'cloneDeep', fonction: undefined }, compose: { ramda: 'compose', rambda: 'compose', fonction: undefined }, converge: { ramda: 'converge', rambda: 'converge', fonction: undefined }, curry: ['lodash', 'rambda', 'ramda'], defaultTo: ['rambda', 'ramda'], drop: { ramda: 'drop', rambda: 'drop', lodash: 'drop', fonction: undefined }, dropLast: { ramda: 'dropLast', rambda: 'dropLast', lodash: 'dropRight', fonction: undefined }, equal: { ramda: 'equals', rambda: 'equals', lodash: 'isEqual' }, filter: { ramda: 'filter', rambda: 'filter', lodash: 'filter', fonction: undefined }, find: { ramda: 'find', rambda: 'find', lodash: 'find', fonction: undefined }, findIndex: { ramda: 'findIndex', rambda: 'findIndex', lodash: 'findIndex', fonction: undefined }, ifElse: {}, ifElseFn: { ramda: 'ifElse', rambda: 'ifElse' }, indexOf: { ramda: 'indexOf', rambda: 'indexOf', lodash: 'indexOf', fonction: undefined }, is: { rambda: 'is', ramda: 'is', fonction: undefined }, isEmpty: ALL_MODULES, last: ALL_MODULES, lastIndexOf: { ramda: 'lastIndexOf', rambda: 'lastIndexOf', lodash: 'lastIndexOf', fonction: undefined }, pipe: ['rambda', 'ramda'], match: { ramda: 'match', rambda: 'match', fonction: undefined }, merge: { ramda: 'merge', rambda: 'merge', lodash: 'merge', fonction: undefined }, none: { ramda: 'none', rambda: 'none', fonction: undefined }, omit: { ramda: 'omit', rambda: 'omit', lodash: 'omit', fonction: undefined }, over: { ramda: 'over', rambda: 'over', fonction: undefined }, path: { ramda: 'path', rambda: 'path', lodash: 'get', fonction: 'props' }, // pick: { // fonction: undefined // }, // propEq: { // fonction: undefined // }, // range: { // fonction: undefined // }, // reduce: { // fonction: undefined // }, // repeat: { // fonction: undefined // }, // set: { // fonction: undefined // }, // sort: { // fonction: undefined // }, // sortBy: { // fonction: undefined // }, // split: { // fonction: undefined // }, // splitEvery: { // fonction: undefined // }, tap: ['lodash', 'rambda', 'ramda'], take: ALL_MODULES, takeLast: { ramda: 'takeLast', rambda: 'takeLast', lodash: 'takeRight' }, tryCatch: ['rambda', 'ramda'], // type: { // fonction: undefined // }, uniq: ['ramda', 'rambda', 'lodash'] // update: { // fonction: undefined // }, // view: { // fonction: undefined // }}
export default api