Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -1858,10 +1858,8 @@
/types/eslint-plugin-prettier/ @ikatyang @JounQin
/types/eslint-plugin-security/ @rhysd @porada
/types/eslint-plugin-tailwindcss/ @eagerestwolf
/types/eslint-scope/ @mysticatea
/types/eslint-utils/ @JoshuaKGoldberg
/types/esm/ @Richienb
/types/espree/ @e6nlaq
/types/esprima/ @teppeis @RReverser @peter-scott
/types/esprima/v2/ @teppeis @RReverser
/types/esprima-walk/ @tswaters
Expand Down Expand Up @@ -4679,9 +4677,6 @@
/types/map-to-obj/ @JasonHK
/types/map-values/ @ChocolateLoverRaj
/types/mapbox/ @anahkiasen @Fluccioni
/types/mapbox-gl/ @dobrud @macobo @dmytro-gokun @LiamAttClarke @life777 @amxfonseca @Nosfit @mbullington @pascaloliv @mschilde
/types/mapbox-gl/v1/ @dobrud @macobo @dmytro-gokun @LiamAttClarke @life777 @mklopets @amxfonseca @pascaloliv
/types/mapbox-gl/v2/ @dobrud @macobo @dmytro-gokun @LiamAttClarke @life777 @amxfonseca @Nosfit @mbullington @pascaloliv @mschilde
/types/mapbox-gl-leaflet/ @agorshkov23
/types/mapbox__aws-sdk-jest/ @stevensnoeijen
/types/mapbox__geo-viewport/ @fnberta
Expand Down Expand Up @@ -5293,7 +5288,6 @@
/types/notifyjs/ @soundTricker @NateScarlet @eikendev
/types/notifyjs-browser/ @bahman616
/types/nova-editor/ @apexskier
/types/nova-editor-node/ @apexskier
/types/novnc-core/ @smithkl42 @BendingBender
/types/novnc__novnc/ @jakejarvis @ovcharik
/types/nowigence-react-simple-maps/ @akashuplers
Expand All @@ -5310,7 +5304,7 @@
/types/npm-registry-package-info/ @ffflorian
/types/npm-user-packages/ @BendingBender
/types/npm-whoami/ @JoshuaKGoldberg
/types/npmcli__arborist/ @forivall @russellhaering
/types/npmcli__arborist/ @forivall
/types/npmcli__ci-detect/ @aminya
/types/npmcli__config/ @forivall
/types/npmcli__map-workspaces/ @forivall
Expand Down Expand Up @@ -7602,7 +7596,6 @@
/types/styled-theming/ @ArjanJ @hieuhlc @tinynumbers
/types/stylenames/ @bengry
/types/styletron-engine-atomic/ @jh3y
/types/styletron-engine-monolithic/ @tbjgolden
/types/styletron-react/ @erictaylor
/types/styletron-standard/ @erictaylor
/types/stylus/ @SomaticIT @STRd6
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-for-scripts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
steps:
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: '20'
node-version: '24'
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
with:
run_install: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: '20'
node-version: '24'

- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0

Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: '20'
node-version: '24'

# forbid symlinks
- name: 'Pre-run validation'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pnpm-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: '20'
node-version: '24'
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0

- name: Get pnpm cache info
Expand Down
2 changes: 1 addition & 1 deletion dangerfile.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { mangleScopedPackage, suggestionsDir } from "@definitelytyped/utils";
import { danger, fail, markdown } from "danger";
import cp from "node:child_process";
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { danger, fail, markdown } from "risk";
const lines: string[] = [];
const missingProperty = /module exports a property named '(.+?)', which is missing/;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"@definitelytyped/header-parser": "latest",
"@definitelytyped/typescript-versions": "latest",
"@definitelytyped/utils": "latest",
"danger": "^13.0.5",
"dprint": "^0.49.0",
"eslint-plugin-jsdoc": "^44.2.7",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"remark-cli": "^12.0.0",
"remark-gfm": "^4.0.0",
"remark-validate-links": "^13.0.0",
"risk": "^0.0.4",
"typescript": "next"
},
"type": "module"
Expand Down
22 changes: 22 additions & 0 deletions types/lodash/common/array.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1784,6 +1784,28 @@ declare module "../index" {
* @param array The array of grouped elements to process.
* @return Returns the new array of regrouped elements.
*/
unzip<T1, T2>(array: Array<[T1, T2]>): [T1[], T2[]];
/**
* @see _.unzip
*/
unzip<T1, T2, T3>(
array: Array<[T1, T2, T3]>,
): [T1[], T2[], T3[]];
/**
* @see _.unzip
*/
unzip<T1, T2, T3, T4>(
array: Array<[T1, T2, T3, T4]>,
): [T1[], T2[], T3[], T4[]];
/**
* @see _.unzip
*/
unzip<T1, T2, T3, T4, T5>(
array: Array<[T1, T2, T3, T4, T5]>,
): [T1[], T2[], T3[], T4[], T5[]];
/**
* @see _.unzip
*/
unzip<T>(array: T[][] | List<List<T>> | null | undefined): T[][];
}
interface Collection<T> {
Expand Down
4 changes: 4 additions & 0 deletions types/lodash/lodash-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,10 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain<number>
_(list).unzip(); // $ExpectType Collection<AbcObject[]>
_.chain(list).unzip(); // $ExpectType CollectionChain<AbcObject[]>
fp.unzip(list); // $ExpectType AbcObject[][]

_.unzip([[1, 'a'], [3, 'b'], [5, 'c']]); // $ExpectType [number[], string[]]
_.unzip([['a', 1, true], ['b', 2, false]]); // $ExpectType [string[], number[], boolean[]]
_.unzip([[1, undefined], [2, 'a']]); // $ExpectType [number[], (string | undefined)[]]
}

// _.unzipWith
Expand Down