Skip to content

Commit 3982b00

Browse files
committed
Merge branch 'minmax' of https://github.com/AbhijitRaut04/stdlib into minmax
2 parents 510bd26 + a9e3098 commit 3982b00

File tree

196 files changed

+10065
-947
lines changed

Some content is hidden

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

196 files changed

+10065
-947
lines changed

.github/workflows/slash_commands.yml

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ on:
2929
# Workflow jobs:
3030
jobs:
3131

32-
# Add a new job for adding the initial reaction
32+
# Define a job for adding an initial reaction:
3333
add_initial_reaction:
3434

35+
# Define a display name:
36+
name: 'Add initial reaction'
37+
3538
# Define the type of virtual host machine:
3639
runs-on: ubuntu-latest
3740

@@ -40,7 +43,21 @@ jobs:
4043

4144
# Define the job's steps:
4245
steps:
43-
# Add initial reaction to the comment
46+
# Add "bot: In progress" label to the issue / PR:
47+
- name: 'Add in-progress label'
48+
# Pin action to full length commit SHA
49+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
50+
with:
51+
github-token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
52+
script: |
53+
github.rest.issues.addLabels({
54+
owner: context.repo.owner,
55+
repo: context.repo.repo,
56+
issue_number: context.issue.number,
57+
labels: ['bot: In Progress']
58+
})
59+
60+
# Add initial reaction to comment with slash command:
4461
- name: 'Add initial reaction'
4562
run: |
4663
COMMENT="${{ github.event.comment.body }}"
@@ -67,6 +84,9 @@ jobs:
6784
# Define a job for checking for required files:
6885
check_files:
6986

87+
# Define a display name:
88+
name: 'Check for required files'
89+
7090
# Define the conditions under which the job should run:
7191
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib check-files')
7292

@@ -81,6 +101,9 @@ jobs:
81101
# Define a job for updating copyright header years:
82102
update_copyright_years:
83103

104+
# Define a display name:
105+
name: 'Update copyright header years'
106+
84107
# Define the conditions under which the job should run:
85108
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib update-copyright-years')
86109

@@ -97,6 +120,9 @@ jobs:
97120
# Define a job for auto-fixing lint errors:
98121
fix_lint_errors:
99122

123+
# Define a display name:
124+
name: 'Auto-fix lint errors'
125+
100126
# Define the conditions under which the job should run:
101127
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib lint-autofix')
102128

@@ -113,6 +139,9 @@ jobs:
113139
# Define a job for merging develop branch:
114140
merge_develop:
115141

142+
# Define a display name:
143+
name: 'Merge changes from develop branch into this PR'
144+
116145
# Define the conditions under which the job should run:
117146
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib merge')
118147

@@ -129,6 +158,9 @@ jobs:
129158
# Define a job for rebasing on develop branch:
130159
rebase_develop:
131160

161+
# Define a display name:
162+
name: 'Rebase this PR on top of develop branch'
163+
132164
# Define the conditions under which the job should run:
133165
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib rebase')
134166

@@ -146,7 +178,7 @@ jobs:
146178
help:
147179

148180
# Define a display name:
149-
name: 'Help'
181+
name: 'Print a list of available slash commands'
150182

151183
# Define the type of virtual host machine:
152184
runs-on: ubuntu-latest
@@ -176,3 +208,42 @@ jobs:
176208
177209
# GitHub token:
178210
token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
211+
212+
# Define a job for removing the in-progress label:
213+
remove_progress_label:
214+
215+
# Define a display name:
216+
name: 'Remove in-progress label'
217+
218+
# Define the type of virtual host machine:
219+
runs-on: ubuntu-latest
220+
221+
# Ensure all previous jobs have completed before running this job:
222+
needs: [ add_initial_reaction, check_files, update_copyright_years, fix_lint_errors, merge_develop, rebase_develop, help ]
223+
224+
# Define the conditions under which the job should run:
225+
if: |
226+
always() &&
227+
github.event.issue.pull_request &&
228+
startsWith(github.event.comment.body, '/stdlib')
229+
230+
# Define the job's steps:
231+
steps:
232+
- name: Remove in-progress label
233+
# Run the step regardless of the outcome of previous steps:
234+
if: always()
235+
# Pin action to full length commit SHA
236+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
237+
with:
238+
github-token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
239+
script: |
240+
try {
241+
await github.rest.issues.removeLabel({
242+
owner: context.repo.owner,
243+
repo: context.repo.repo,
244+
issue_number: context.issue.number,
245+
name: 'bot: In Progress'
246+
})
247+
} catch (error) {
248+
console.log( 'Error removing label:', error );
249+
}

etc/npm/deps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
acorn@"^8.1.0" acorn-loose@"^8.0.2" acorn-walk@"^8.0.2" d3-format@"^1.0.0" d3-scale@"^1.0.0" d3-shape@"^1.0.0" d3-time-format@"^2.0.0" debug@"^2.6.9" glob@"^7.0.5" minimist@"^1.2.0" readable-stream@"^2.1.4" resolve@"^1.1.7" vdom-to-html@"^2.3.0" virtual-dom@"^2.1.1" 0x@"^4.10.2" @cspell/eslint-plugin@"^8.8.0" @commitlint/cli@"^17.4.4" @commitlint/cz-commitlint@"^17.4.4" @conventional-commits/parser@"^0.4.1" @kaciras/deasync@"^1.0.1" @types/node@"^13.9.0" @typescript-eslint/parser@"^6.9.1" @typescript-eslint/eslint-plugin@"^6.9.1" ajv@"^5.2.2" browser-pack-flat@"^3.0.0" browserify@"^17.0.0" bundle-collapser@"^1.3.0" c8@"^7.12.0" chai@"^3.5.0" cheerio@"^1.0.0-rc.12" commitizen@"^4.3.0" common-shakeify@"^0.6.0" conventional-changelog-conventionalcommits@"^5.0.0" doctrine@"^3.0.0" envify@"^4.0.0" eslint@"^8.57.0" eslint-plugin-node@"^11.1.0" eslint-plugin-expect-type@"^0.2.3" eslint-plugin-import@"^2.29.0" eslint-plugin-jsdoc@"^46.8.2" exorcist@"^2.0.0" factor-bundle@"^2.5.0" gh-pages@"git+https://github.com/Planeshifter/gh-pages.git#main" inquirer@"^8.0.0" jscodeshift@"^0.15.0" jsdoc@"^3.4.0" lunr@"^2.3.9" mathjax-node@"^2.0.1" mathjax-node-sre@"^3.0.0" mkdirp@"^0.5.1" mustache@"^4.0.0" parse-link-header@"^1.0.1" plato@"^1.5.0" process@"^0.11.10" proxyquire@"^2.0.0" proxyquire-universal@"^2.0.0" proxyquireify@"^3.1.1" read-installed@"^4.0.3" rehype@"^9.0.0" rehype-highlight@"^3.0.0" remark@"^11.0.1" remark-cli@"^7.0.0" remark-frontmatter@"^1.2.0" remark-html@"^10.0.0" remark-lint@"^6.0.0" remark-lint-blockquote-indentation@"^1.0.0" remark-lint-checkbox-character-style@"^1.0.0" remark-lint-checkbox-content-indent@"^1.0.0" remark-lint-code-block-style@"^1.0.0" remark-lint-definition-case@"^1.0.0" remark-lint-definition-spacing@"^1.0.0" remark-lint-emphasis-marker@"^1.0.0" remark-lint-fenced-code-flag@"^1.0.0" remark-lint-fenced-code-marker@"^1.0.0" remark-lint-file-extension@"^1.0.0" remark-lint-final-definition@"^1.0.0" remark-lint-final-newline@"^1.0.0" remark-lint-first-heading-level@"^1.1.0" remark-lint-hard-break-spaces@"^1.0.1" remark-lint-heading-increment@"^1.0.0" remark-lint-heading-style@"^1.0.0" remark-lint-linebreak-style@"^1.0.0" remark-lint-link-title-style@"^1.0.0" remark-lint-list-item-bullet-indent@"^1.0.0" remark-lint-list-item-content-indent@"^1.0.0" remark-lint-list-item-indent@"^1.0.0" remark-lint-list-item-spacing@"^1.1.0" remark-lint-maximum-heading-length@"^1.0.0" remark-lint-maximum-line-length@"^1.0.0" remark-lint-no-auto-link-without-protocol@"^1.0.0" remark-lint-no-blockquote-without-marker@"^2.0.0" remark-lint-no-consecutive-blank-lines@"^1.0.0" remark-lint-no-duplicate-definitions@"^1.0.0" remark-lint-no-duplicate-headings@"^1.0.0" remark-lint-no-duplicate-headings-in-section@"^1.0.0" remark-lint-no-emphasis-as-heading@"^1.0.0" remark-lint-no-empty-url@"^1.0.1" remark-lint-no-file-name-articles@"^1.0.0" remark-lint-no-file-name-consecutive-dashes@"^1.0.0" remark-lint-no-file-name-irregular-characters@"^1.0.0" remark-lint-no-file-name-mixed-case@"^1.0.0" remark-lint-no-file-name-outer-dashes@"^1.0.1" remark-lint-no-heading-content-indent@"^1.0.0" remark-lint-no-heading-indent@"^1.0.0" remark-lint-no-heading-like-paragraph@"^1.0.0" remark-lint-no-heading-punctuation@"^1.0.0" remark-lint-no-html@"^1.0.0" remark-lint-no-inline-padding@"^1.0.0" remark-lint-no-literal-urls@"^1.0.0" remark-lint-no-missing-blank-lines@"^1.0.0" remark-lint-no-multiple-toplevel-headings@"^1.0.0" remark-lint-no-paragraph-content-indent@"^1.0.1" remark-lint-no-reference-like-url@"^1.0.0" remark-lint-no-shell-dollars@"^1.0.0" remark-lint-no-shortcut-reference-image@"^1.0.0" remark-lint-no-shortcut-reference-link@"^1.0.1" remark-lint-no-table-indentation@"^1.0.0" remark-lint-no-tabs@"^1.0.0" remark-lint-no-undefined-references@"^1.0.0" remark-lint-no-unused-definitions@"^1.0.0" remark-lint-ordered-list-marker-style@"^1.0.0" remark-lint-ordered-list-marker-value@"^1.0.0" remark-lint-rule-style@"^1.0.0" remark-lint-strong-marker@"^1.0.0" remark-lint-table-cell-padding@"^1.0.0" remark-lint-table-pipe-alignment@"^1.0.0" remark-lint-table-pipes@"^1.0.0" remark-lint-unordered-list-marker-style@"^1.0.0" remark-slug@"^5.0.0" remark-unlink@"^2.0.0" remark-validate-links@"^9.0.1" remark-vdom@"^8.0.0" semver@"^6.0.0" source-map-explorer@"^2.5.3" spdx-license-ids@"^3.0.0" tap-min@"git+https://github.com/Planeshifter/tap-min.git" tap-spec@"5.x.x" tap-summary@"^4.0.0" tap-xunit@"^2.2.0" tape@"git+https://github.com/kgryte/tape.git#fix/globby" to-vfile@"^6.0.0" typedoc@"^0.16.11" typescript@"4.3.5" uglify-js@"^3.17.4" uglifyify@"^5.0.0" unified-lint-rule@"^1.0.1" unist-util-visit@"^2.0.0" unist-util-visit-parents@"^3.1.1" yaml@"^1.0.0" node-gyp@"^9.3.1"
1+
acorn@"^8.1.0" acorn-loose@"^8.0.2" acorn-walk@"^8.0.2" d3-format@"^1.0.0" d3-scale@"^1.0.0" d3-shape@"^1.0.0" d3-time-format@"^2.0.0" debug@"^2.6.9" glob@"^7.0.5" minimist@"^1.2.0" readable-stream@"^2.1.4" resolve@"^1.1.7" vdom-to-html@"^2.3.0" virtual-dom@"^2.1.1" 0x@"^4.10.2" @cspell/eslint-plugin@"^8.8.0" @commitlint/cli@"^17.4.4" @commitlint/cz-commitlint@"^17.4.4" @conventional-commits/parser@"^0.4.1" @kaciras/deasync@"^1.0.1" @types/node@"^13.9.0" @typescript-eslint/parser@"^6.9.1" @typescript-eslint/eslint-plugin@"^6.9.1" ajv@"^5.2.2" browser-pack-flat@"^3.0.0" browserify@"^17.0.0" bundle-collapser@"^1.3.0" c8@"^7.12.0" chai@"^3.5.0" cheerio@"^1.0.0-rc.12" commitizen@"^4.3.0" common-shakeify@"^0.6.0" conventional-changelog-conventionalcommits@"^5.0.0" doctrine@"^3.0.0" envify@"^4.0.0" eslint@"^8.57.0" eslint-plugin-node@"^11.1.0" eslint-plugin-expect-type@"^0.2.3" eslint-plugin-import@"^2.29.0" eslint-plugin-jsdoc@"^46.8.2" exorcist@"^2.0.0" factor-bundle@"^2.5.0" gh-pages@"git+https://github.com/Planeshifter/gh-pages.git#main" inquirer@"^8.0.0" jscodeshift@"^0.15.0" jsdoc@"^3.4.0" lunr@"^2.3.9" mathjax-node@"^2.0.1" mathjax-node-sre@"^3.0.0" mkdirp@"^0.5.1" mustache@"^4.0.0" parse-link-header@"^1.0.1" plato@"^1.5.0" process@"^0.11.10" proxyquire@"^2.0.0" proxyquire-universal@"^2.0.0" proxyquireify@"^3.1.1" read-installed@"^4.0.3" rehype@"^9.0.0" rehype-highlight@"^3.0.0" remark@"^11.0.1" remark-cli@"^7.0.0" remark-frontmatter@"^1.2.0" remark-html@"^10.0.0" remark-lint@"^6.0.0" remark-lint-blockquote-indentation@"^1.0.0" remark-lint-checkbox-character-style@"^1.0.0" remark-lint-checkbox-content-indent@"^1.0.0" remark-lint-code-block-style@"^1.0.0" remark-lint-definition-case@"^1.0.0" remark-lint-definition-spacing@"^1.0.0" remark-lint-emphasis-marker@"^1.0.0" remark-lint-fenced-code-flag@"^1.0.0" remark-lint-fenced-code-marker@"^1.0.0" remark-lint-file-extension@"^1.0.0" remark-lint-final-definition@"^1.0.0" remark-lint-final-newline@"^1.0.0" remark-lint-first-heading-level@"^1.1.0" remark-lint-hard-break-spaces@"^1.0.1" remark-lint-heading-increment@"^1.0.0" remark-lint-heading-style@"^1.0.0" remark-lint-linebreak-style@"^1.0.0" remark-lint-link-title-style@"^1.0.0" remark-lint-list-item-bullet-indent@"^1.0.0" remark-lint-list-item-content-indent@"^1.0.0" remark-lint-list-item-indent@"^1.0.0" remark-lint-list-item-spacing@"^1.1.0" remark-lint-maximum-heading-length@"^1.0.0" remark-lint-maximum-line-length@"^1.0.0" remark-lint-no-auto-link-without-protocol@"^1.0.0" remark-lint-no-blockquote-without-marker@"^2.0.0" remark-lint-no-consecutive-blank-lines@"^1.0.0" remark-lint-no-duplicate-definitions@"^1.0.0" remark-lint-no-duplicate-headings@"^1.0.0" remark-lint-no-duplicate-headings-in-section@"^1.0.0" remark-lint-no-emphasis-as-heading@"^1.0.0" remark-lint-no-empty-url@"^1.0.1" remark-lint-no-file-name-articles@"^1.0.0" remark-lint-no-file-name-consecutive-dashes@"^1.0.0" remark-lint-no-file-name-irregular-characters@"^1.0.0" remark-lint-no-file-name-mixed-case@"^1.0.0" remark-lint-no-file-name-outer-dashes@"^1.0.1" remark-lint-no-heading-content-indent@"^1.0.0" remark-lint-no-heading-indent@"^1.0.0" remark-lint-no-heading-like-paragraph@"^1.0.0" remark-lint-no-heading-punctuation@"^1.0.0" remark-lint-no-html@"^1.0.0" remark-lint-no-inline-padding@"^1.0.0" remark-lint-no-literal-urls@"^1.0.0" remark-lint-no-missing-blank-lines@"^1.0.0" remark-lint-no-multiple-toplevel-headings@"^1.0.0" remark-lint-no-paragraph-content-indent@"^1.0.1" remark-lint-no-reference-like-url@"^1.0.0" remark-lint-no-shell-dollars@"^1.0.0" remark-lint-no-shortcut-reference-image@"^1.0.0" remark-lint-no-shortcut-reference-link@"^1.0.1" remark-lint-no-table-indentation@"^1.0.0" remark-lint-no-tabs@"^1.0.0" remark-lint-no-undefined-references@"^1.0.0" remark-lint-no-unused-definitions@"^1.0.0" remark-lint-ordered-list-marker-style@"^1.0.0" remark-lint-ordered-list-marker-value@"^1.0.0" remark-lint-rule-style@"^1.0.0" remark-lint-strong-marker@"^1.0.0" remark-lint-table-cell-padding@"^1.0.0" remark-lint-table-pipe-alignment@"^1.0.0" remark-lint-table-pipes@"^1.0.0" remark-lint-unordered-list-marker-style@"^1.0.0" remark-slug@"^5.0.0" remark-unlink@"^2.0.0" remark-validate-links@"^9.0.1" remark-vdom@"^8.0.0" semver@"^6.0.0" source-map-explorer@"^2.5.3" spdx-license-ids@"^3.0.0" tap-min@"git+https://github.com/Planeshifter/tap-min.git" tap-spec@"5.x.x" tap-summary@"^4.0.0" tap-xunit@"^2.2.0" tape@"git+https://github.com/kgryte/tape.git#fix/globby" to-vfile@"^6.0.0" typedoc@"git+https://github.com/kgryte/typedoc.git#0.16.11-patch" typescript@"4.3.5" uglify-js@"^3.17.4" uglifyify@"^5.0.0" unified-lint-rule@"^1.0.1" unist-util-visit@"^2.0.0" unist-util-visit-parents@"^3.1.1" yaml@"^1.0.0" node-gyp@"^9.3.1"

etc/typedoc/.typedoc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

etc/typedoc/tsconfig.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"compilerOptions": {
3+
"allowJs": true,
4+
"allowSyntheticDefaultImports": false,
5+
"allowUnreachableCode": false,
6+
"allowUnusedLabels": false,
7+
"alwaysStrict": true,
8+
"baseUrl": "./../../lib/node_modules",
9+
"checkJs": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"keyofStringsOnly": false,
12+
"lib": [
13+
"es6"
14+
],
15+
"module": "commonjs",
16+
"moduleResolution": "node",
17+
"newLine": "lf",
18+
"noEmit": true,
19+
"noFallthroughCasesInSwitch": true,
20+
"noImplicitAny": true,
21+
"noImplicitReturns": false,
22+
"noImplicitThis": true,
23+
"noStrictGenericChecks": false,
24+
"noUnusedLocals": true,
25+
"noUnusedParameters": true,
26+
"paths": {},
27+
"pretty": true,
28+
"strictBindCallApply": true,
29+
"strictFunctionTypes": true,
30+
"strictNullChecks": true,
31+
"suppressExcessPropertyErrors": false,
32+
"suppressImplicitAnyIndexErrors": false,
33+
"typeRoots": [ "./../../" ],
34+
"types": []
35+
},
36+
"include": [
37+
"./../../lib/node_modules/**/docs/types/index.d.ts",
38+
"./../../lib/node_modules/**/@stdlib/types/index.d.ts"
39+
],
40+
"exclude": [
41+
"node_modules"
42+
]
43+
}

lib/node_modules/@stdlib/_tools/remark/plugins/remark-svg-equations/lib/transformer.js

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,66 @@ function transformer( tree, file, clbk ) {
149149
parent = equations[ idx ].parent;
150150
i = equations[ idx ].index;
151151

152-
// Case 1: insert new node between equation tags...
152+
/*
153+
* Case 1: insert new node between equation tags.
154+
*
155+
* ```markdown
156+
* <!-- <equation class="equation" label="eq:triangular_root" align="center" raw="n = \frac{\sqrt{8x+1} - 1}{2}" alt="Triangular root formula."> -->
157+
*
158+
* <!-- </equation> -->
159+
* ```
160+
*/
153161
if ( EQN_END.test( parent.children[ i+1 ].value ) ) {
154162
debug( 'Inserting new node...' );
155163
parent.children.splice( i+1, 0, newNode );
156164
}
157-
// Case 2: replace existing node...
165+
/*
166+
* Case 2: replace existing node.
167+
*
168+
* ```markdown
169+
* <!-- <equation class="equation" label="eq:triangular_root" align="center" raw="n = \frac{\sqrt{8x+1} - 1}{2}" alt="Triangular root formula."> -->
170+
*
171+
* <div class="equation" align="center" data-raw-text="n = \frac{\sqrt{8x+1} - 1}{2}" data-equation="eq:triangular_root">
172+
* <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@b295a09a80f4fd0cc84682dcda0fe3e354394c0c/lib/node_modules/@stdlib/assert/is-square-triangular-number/docs/img/equation_triangular_root.svg" alt="Triangular root formula.">
173+
* <br>
174+
* </div>
175+
*
176+
* <!-- </equation> -->
177+
* ```
178+
*/
158179
else if ( EQN_END.test( parent.children[ i+2 ].value ) ) {
159180
debug( 'Replacing existing node...' );
160181
parent.children[ i+1 ] = newNode;
161182
}
183+
/*
184+
* Case 3: replace existing nodes.
185+
*
186+
* ```markdown
187+
* <!-- <equation class="equation" label="eq:triangular_root" align="center" raw="n = \frac{\sqrt{8x+1} - 1}{2}" alt="Triangular root formula."> -->
188+
*
189+
* \`\`\`math
190+
* n = \frac{\sqrt{8x+1} - 1}{2}
191+
* \`\`\`
192+
*
193+
* <!-- <div class="equation" align="center" data-raw-text="n = \frac{\sqrt{8x+1} - 1}{2}" data-equation="eq:triangular_root">
194+
* <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@b295a09a80f4fd0cc84682dcda0fe3e354394c0c/lib/node_modules/@stdlib/assert/is-square-triangular-number/docs/img/equation_triangular_root.svg" alt="Triangular root formula.">
195+
* <br>
196+
* </div> -->
197+
*
198+
* <!-- </equation> -->
199+
* ```
200+
*/
201+
else if ( EQN_END.test( parent.children[ i+3 ].value ) ) {
202+
debug( 'Replacing existing nodes...' );
203+
204+
// Note: we don't splice--we simply replace--in order to avoid invalidating the indices of the equation elements in the AST. If we were to remove children, a subsequent resolved equation index would no longer be accurate...
205+
parent.children[ i+1 ] = newNode;
206+
parent.children[ i+1 ] = {
207+
'type': 'html',
208+
'value': '<!-- -->'
209+
};
210+
}
211+
// Otherwise, an invalid node...
162212
else {
163213
debug( 'Invalid node: %s', parent.children[ idx ].value );
164214
error = new Error( format( 'invalid node. Invalid equation comment. Ensure that the Markdown file includes both starting and ending equation comments. Node: `%s`.', parent.children[ idx ].value ) );

lib/node_modules/@stdlib/array/base/group-entries-by/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ type Indicator<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U>;
7474
/**
7575
* Interface describing returned group results.
7676
*/
77-
interface EntriesResults<K, T> {
77+
interface EntriesResults<T> {
7878
/**
7979
* Object properties.
8080
*/
81-
[key: K]: Array<[ number, T ]>;
81+
[key: Key]: Array<[ number, T ]>;
8282
}
8383

8484
/**
@@ -99,7 +99,7 @@ interface EntriesResults<K, T> {
9999
* var out = groupEntriesBy( x, indicator );
100100
* // returns { 'b': [ [ 0, 'beep' ], [ 1, 'boop' ], [ 3, 'bar' ] ], 'f': [ [ 2, 'foo' ] ] }
101101
*/
102-
declare function groupEntriesBy<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, indicator: Indicator<T, U>, thisArg?: ThisParameterType<Indicator<T, U>> ): EntriesResults<Key, T>;
102+
declare function groupEntriesBy<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, indicator: Indicator<T, U>, thisArg?: ThisParameterType<Indicator<T, U>> ): EntriesResults<T>;
103103

104104

105105
// EXPORTS //

lib/node_modules/@stdlib/array/base/group-entries/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ type Key = string | symbol | number;
3030
/**
3131
* Interface describing returned group results.
3232
*/
33-
interface EntriesResults<K, T> {
33+
interface EntriesResults<T> {
3434
/**
3535
* Object properties.
3636
*/
37-
[key: K]: Array<[ number, T ]>;
37+
[key: Key]: Array<[ number, T ]>;
3838
}
3939

4040
/**
@@ -51,7 +51,7 @@ interface EntriesResults<K, T> {
5151
* var out = groupEntries( x, groups );
5252
* // returns { 'b': [ [ 0, 'beep' ], [ 1, 'boop' ], [ 3, 'bar' ] ], 'f': [ [ 2, 'foo' ] ] }
5353
*/
54-
declare function groupEntries<T = unknown>( x: Collection<T> | AccessorArrayLike<T>, groups: Collection<Key> | AccessorArrayLike<Key> ): EntriesResults<Key, T>;
54+
declare function groupEntries<T = unknown>( x: Collection<T> | AccessorArrayLike<T>, groups: Collection<Key> | AccessorArrayLike<Key> ): EntriesResults<T>;
5555

5656

5757
// EXPORTS //

0 commit comments

Comments
 (0)