mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
304 lines
5.8 KiB
TypeScript
304 lines
5.8 KiB
TypeScript
// Usage: ts-node generate-modules
|
|
|
|
/// <reference types="node" />
|
|
|
|
import * as fs from "fs";
|
|
|
|
for (const module of allModuleNames()) {
|
|
if (!fs.existsSync(module)) {
|
|
fs.mkdirSync(module);
|
|
}
|
|
fs.writeFileSync(`${module}/index.d.ts`, `import { ${module} } from "../index";\nexport = ${module};`);
|
|
}
|
|
|
|
function allModuleNames() {
|
|
return [
|
|
"add",
|
|
"after",
|
|
"ary",
|
|
"assign",
|
|
"assignIn",
|
|
"assignInWith",
|
|
"assignWith",
|
|
"at",
|
|
"attempt",
|
|
"before",
|
|
"bind",
|
|
"bindAll",
|
|
"bindKey",
|
|
"camelCase",
|
|
"capitalize",
|
|
"castArray",
|
|
"ceil",
|
|
"chain",
|
|
"chunk",
|
|
"clamp",
|
|
"clone",
|
|
"cloneDeep",
|
|
"cloneDeepWith",
|
|
"cloneWith",
|
|
"compact",
|
|
"concat",
|
|
"constant",
|
|
"countBy",
|
|
"create",
|
|
"curry",
|
|
"curryRight",
|
|
"debounce",
|
|
"deburr",
|
|
"defaults",
|
|
"defaultsDeep",
|
|
"defer",
|
|
"delay",
|
|
"difference",
|
|
"differenceBy",
|
|
"differenceWith",
|
|
"drop",
|
|
"dropRight",
|
|
"dropRightWhile",
|
|
"dropWhile",
|
|
"each",
|
|
"eachRight",
|
|
"endsWith",
|
|
"eq",
|
|
"escape",
|
|
"escapeRegExp",
|
|
"every",
|
|
"extend",
|
|
"extendWith",
|
|
"fb",
|
|
"fill",
|
|
"filter",
|
|
"find",
|
|
"findIndex",
|
|
"findKey",
|
|
"findLast",
|
|
"findLastIndex",
|
|
"findLastKey",
|
|
"first",
|
|
"flatMap",
|
|
"flatten",
|
|
"flattenDeep",
|
|
"flattenDepth",
|
|
"flip",
|
|
"floor",
|
|
"flow",
|
|
"flowRight",
|
|
"forEach",
|
|
"forEachRight",
|
|
"forIn",
|
|
"forInRight",
|
|
"forOwn",
|
|
"forOwnRight",
|
|
"fromPairs",
|
|
"functions",
|
|
"functionsIn",
|
|
"get",
|
|
"groupBy",
|
|
"gt",
|
|
"gte",
|
|
"has",
|
|
"hasIn",
|
|
"head",
|
|
"identity",
|
|
"inRange",
|
|
"includes",
|
|
"indexOf",
|
|
"initial",
|
|
"intersection",
|
|
"intersectionBy",
|
|
"intersectionWith",
|
|
"invert",
|
|
"invertBy",
|
|
"invoke",
|
|
"invokeMap",
|
|
"isArguments",
|
|
"isArray",
|
|
"isArrayBuffer",
|
|
"isArrayLike",
|
|
"isArrayLikeObject",
|
|
"isBoolean",
|
|
"isBuffer",
|
|
"isDate",
|
|
"isElement",
|
|
"isEmpty",
|
|
"isEqual",
|
|
"isEqualWith",
|
|
"isError",
|
|
"isFinite",
|
|
"isFunction",
|
|
"isInteger",
|
|
"isLength",
|
|
"isMap",
|
|
"isMatch",
|
|
"isMatchWith",
|
|
"isNaN",
|
|
"isNative",
|
|
"isNil",
|
|
"isNull",
|
|
"isNumber",
|
|
"isObject",
|
|
"isObjectLike",
|
|
"isPlainObject",
|
|
"isRegExp",
|
|
"isSafeInteger",
|
|
"isSet",
|
|
"isString",
|
|
"isSymbol",
|
|
"isTypedArray",
|
|
"isUndefined",
|
|
"isWeakMap",
|
|
"isWeakSet",
|
|
"iteratee",
|
|
"join",
|
|
"kebabCase",
|
|
"keyBy",
|
|
"keys",
|
|
"keysIn",
|
|
"last",
|
|
"lastIndexOf",
|
|
"lowerCase",
|
|
"lowerFirst",
|
|
"lt",
|
|
"lte",
|
|
"map",
|
|
"mapKeys",
|
|
"mapValues",
|
|
"matches",
|
|
"matchesProperty",
|
|
"max",
|
|
"maxBy",
|
|
"mean",
|
|
"meanBy",
|
|
"memoize",
|
|
"merge",
|
|
"mergeWith",
|
|
"method",
|
|
"methodOf",
|
|
"min",
|
|
"minBy",
|
|
"mixin",
|
|
"negate",
|
|
"noConflict",
|
|
"noop",
|
|
"now",
|
|
"nthArg",
|
|
"omit",
|
|
"omitBy",
|
|
"once",
|
|
"orderBy",
|
|
"over",
|
|
"overArgs",
|
|
"overEvery",
|
|
"overSome",
|
|
"pad",
|
|
"padEnd",
|
|
"padStart",
|
|
"parseInt",
|
|
"partial",
|
|
"partialRight",
|
|
"partition",
|
|
"pick",
|
|
"pickBy",
|
|
"property",
|
|
"propertyOf",
|
|
"pull",
|
|
"pullAll",
|
|
"pullAllBy",
|
|
"pullAt",
|
|
"random",
|
|
"range",
|
|
"rangeRight",
|
|
"rearg",
|
|
"reduce",
|
|
"reduceRight",
|
|
"reject",
|
|
"remove",
|
|
"repeat",
|
|
"replace",
|
|
"rest",
|
|
"result",
|
|
"reverse",
|
|
"round",
|
|
"runInContext",
|
|
"sample",
|
|
"sampleSize",
|
|
"set",
|
|
"setWith",
|
|
"shuffle",
|
|
"size",
|
|
"slice",
|
|
"snakeCase",
|
|
"some",
|
|
"sortBy",
|
|
"sortedIndex",
|
|
"sortedIndexBy",
|
|
"sortedIndexOf",
|
|
"sortedLastIndex",
|
|
"sortedLastIndexBy",
|
|
"sortedLastIndexOf",
|
|
"sortedUniq",
|
|
"sortedUniqBy",
|
|
"split",
|
|
"spread",
|
|
"startCase",
|
|
"startsWith",
|
|
"subtract",
|
|
"sum",
|
|
"sumBy",
|
|
"tail",
|
|
"take",
|
|
"takeRight",
|
|
"takeRightWhile",
|
|
"takeWhile",
|
|
"tap",
|
|
"template",
|
|
"throttle",
|
|
"thru",
|
|
"times",
|
|
"toArray",
|
|
"toInteger",
|
|
"toLength",
|
|
"toLower",
|
|
"toNumber",
|
|
"toPairs",
|
|
"toPairsIn",
|
|
"toPath",
|
|
"toPlainObject",
|
|
"toSafeInteger",
|
|
"toString",
|
|
"toUpper",
|
|
"transform",
|
|
"trim",
|
|
"trimEnd",
|
|
"trimStart",
|
|
"truncate",
|
|
"unary",
|
|
"unescape",
|
|
"union",
|
|
"unionBy",
|
|
"unionWith",
|
|
"uniq",
|
|
"uniqBy",
|
|
"uniqWith",
|
|
"uniqueId",
|
|
"unset",
|
|
"unzip",
|
|
"unzipWith",
|
|
"update",
|
|
"upperCase",
|
|
"upperFirst",
|
|
"values",
|
|
"valuesIn",
|
|
"without",
|
|
"words",
|
|
"wrap",
|
|
"xor",
|
|
"xorBy",
|
|
"xorWith",
|
|
"zip",
|
|
"zipObject",
|
|
"zipWith"
|
|
];
|
|
}
|