Skip to content

Commit 36de549

Browse files
committed
2
1 parent 5f38a2a commit 36de549

52 files changed

Lines changed: 474 additions & 398 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.oxfmtrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"semi": false,
5+
"ignorePatterns": []
6+
}

eslint.config.mjs

Lines changed: 0 additions & 137 deletions
This file was deleted.

files/index.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ Notes:
13221322
13231323
*/
13241324
// @SINGLE_MARKER
1325-
export function match(regExpression: RegExp): (str: string) => string[];
1325+
export function match(regExpression: RegExp | string): (str: string) => string[];
13261326

13271327
/*
13281328
Method: maxBy
@@ -3328,6 +3328,10 @@ Notes:
33283328
33293329
*/
33303330
// @SINGLE_MARKER
3331+
export function tryCatch<T>(
3332+
fn: () => T,
3333+
fallback: T
3334+
): () => T;
33313335
export function tryCatch<T, U>(
33323336
fn: (input: T) => U,
33333337
fallback: U
@@ -4642,6 +4646,10 @@ Notes:
46424646
46434647
*/
46444648
// @SINGLE_MARKER
4649+
export function mapParallelAsync<T extends IterableContainer, U>(
4650+
fn: (value: T[number], index: number) => Promise<U>,
4651+
batchSize?: number,
4652+
): (data: T) => Promise<Mapped<T, U>>;
46454653
export function mapParallelAsync<T extends IterableContainer, U>(
46464654
fn: (value: T[number]) => Promise<U>,
46474655
batchSize?: number,
@@ -4934,6 +4942,7 @@ Notes:
49344942
*/
49354943
// @SINGLE_MARKER
49364944
export function assertType<T, U extends T>(fn: (x: T) => x is U) : (x: T) => U;
4945+
export function assertType<T>(fn: (x: T) => boolean): (x: T) => T;
49374946

49384947
/*
49394948
Method: interpolate

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build:web": "rollup rambda.js --file dist/rambda.umd.js --format umd --name \"R\"",
1010
"populatedocs": "cd ../rambda-scripts && yarn populate:docs",
1111
"populatereadme": "cd ../rambda-scripts && yarn populate:readme",
12-
"lint": "cd source && run lint:folder > lint-output.txt",
12+
"format": "oxfmt --write 'source/**/*.{ts,js}'",
13+
"lint:file": "oxfmt --write",
1314
"lint:typings": "tsc",
1415
"test:file": "node scripts/tasks/run/run-test.js",
1516
"test:ci": "vitest run",
@@ -21,7 +22,17 @@
2122
"ts": "yarn test:typings"
2223
},
2324
"niketaScripts": {
24-
"**/*.js": "yarn test:file"
25+
"scripts": {
26+
"Testing": {
27+
"**/*.ts": "yarn test:file",
28+
"**/*.tsx": "yarn test:file"
29+
},
30+
"Linting": {
31+
"**/*.ts": "yarn lint:file",
32+
"**/*.js": "yarn lint:file"
33+
}
34+
},
35+
"active": "Testing"
2536
},
2637
"type": "module",
2738
"exports": {
@@ -41,6 +52,7 @@
4152
"@vitest/coverage-v8": "5.0.0-beta.5",
4253
"helpers-fn": "2.1.1",
4354
"lodash": "4.18.1",
55+
"oxfmt": "0.62.0",
4456
"radashi": "13.0.0-beta.ffa4778",
4557
"rambdax": "11.3.1",
4658
"ramda": "0.32.0",

0 commit comments

Comments
 (0)