mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Orders type specified as "asc"|"desc" instead of string in orderBy. (#29572)
This commit is contained in:
Vendored
+12
-12
@@ -1658,7 +1658,7 @@ declare module "../index" {
|
||||
orderBy<T>(
|
||||
collection: List<T> | null | undefined,
|
||||
iteratees?: Many<ListIterator<T, NotVoid>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): T[];
|
||||
|
||||
/**
|
||||
@@ -1667,7 +1667,7 @@ declare module "../index" {
|
||||
orderBy<T>(
|
||||
collection: List<T> | null | undefined,
|
||||
iteratees?: Many<ListIteratee<T>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): T[];
|
||||
|
||||
/**
|
||||
@@ -1676,7 +1676,7 @@ declare module "../index" {
|
||||
orderBy<T extends object>(
|
||||
collection: T | null | undefined,
|
||||
iteratees?: Many<ObjectIterator<T, NotVoid>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): Array<T[keyof T]>;
|
||||
|
||||
/**
|
||||
@@ -1685,7 +1685,7 @@ declare module "../index" {
|
||||
orderBy<T extends object>(
|
||||
collection: T | null | undefined,
|
||||
iteratees?: Many<ObjectIteratee<T>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): Array<T[keyof T]>;
|
||||
}
|
||||
|
||||
@@ -1696,7 +1696,7 @@ declare module "../index" {
|
||||
orderBy<T>(
|
||||
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
||||
iteratees?: Many<ListIterator<T, NotVoid>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): LoDashImplicitWrapper<T[]>;
|
||||
|
||||
/**
|
||||
@@ -1705,7 +1705,7 @@ declare module "../index" {
|
||||
orderBy<T>(
|
||||
this: LoDashImplicitWrapper<List<T> | null | undefined>,
|
||||
iteratees?: Many<ListIteratee<T>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): LoDashImplicitWrapper<T[]>;
|
||||
|
||||
/**
|
||||
@@ -1714,7 +1714,7 @@ declare module "../index" {
|
||||
orderBy<T extends object>(
|
||||
this: LoDashImplicitWrapper<T | null | undefined>,
|
||||
iteratees?: Many<ObjectIterator<T, NotVoid>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): LoDashImplicitWrapper<Array<T[keyof T]>>;
|
||||
|
||||
/**
|
||||
@@ -1723,7 +1723,7 @@ declare module "../index" {
|
||||
orderBy<T extends object>(
|
||||
this: LoDashImplicitWrapper<T | null | undefined>,
|
||||
iteratees?: Many<ObjectIteratee<T>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): LoDashImplicitWrapper<Array<T[keyof T]>>;
|
||||
}
|
||||
|
||||
@@ -1734,7 +1734,7 @@ declare module "../index" {
|
||||
orderBy<T>(
|
||||
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
||||
iteratees?: Many<ListIterator<T, NotVoid>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitWrapper<T[]>;
|
||||
|
||||
/**
|
||||
@@ -1743,7 +1743,7 @@ declare module "../index" {
|
||||
orderBy<T>(
|
||||
this: LoDashExplicitWrapper<List<T> | null | undefined>,
|
||||
iteratees?: Many<ListIteratee<T>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitWrapper<T[]>;
|
||||
|
||||
/**
|
||||
@@ -1752,7 +1752,7 @@ declare module "../index" {
|
||||
orderBy<T extends object>(
|
||||
this: LoDashExplicitWrapper<T | null | undefined>,
|
||||
iteratees?: Many<ObjectIterator<T, NotVoid>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
||||
|
||||
/**
|
||||
@@ -1761,7 +1761,7 @@ declare module "../index" {
|
||||
orderBy<T extends object>(
|
||||
this: LoDashExplicitWrapper<T | null | undefined>,
|
||||
iteratees?: Many<ObjectIteratee<T>>,
|
||||
orders?: Many<boolean|string>
|
||||
orders?: Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitWrapper<Array<T[keyof T]>>;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+19
-19
@@ -2312,25 +2312,25 @@ declare namespace _ {
|
||||
type LodashOnce = <T extends (...args: any[]) => any>(func: T) => T;
|
||||
interface LodashOrderBy {
|
||||
<T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid>): LodashOrderBy1x1<T>;
|
||||
(iteratees: lodash.__, orders: lodash.Many<boolean|string>): LodashOrderBy1x2;
|
||||
<T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid>, orders: lodash.Many<boolean|string>): LodashOrderBy1x3<T>;
|
||||
(iteratees: lodash.__, orders: lodash.Many<boolean|"asc"|"desc">): LodashOrderBy1x2;
|
||||
<T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid>, orders: lodash.Many<boolean|"asc"|"desc">): LodashOrderBy1x3<T>;
|
||||
<T>(iteratees: lodash.__, orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy1x4<T>;
|
||||
<T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid>, orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy1x5<T>;
|
||||
<T>(iteratees: lodash.__, orders: lodash.Many<boolean|string>, collection: lodash.List<T> | null | undefined): LodashOrderBy1x6<T>;
|
||||
<T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean | string>, collection: lodash.List<T> | null | undefined): T[];
|
||||
<T>(iteratees: lodash.__, orders: lodash.Many<boolean|"asc"|"desc">, collection: lodash.List<T> | null | undefined): LodashOrderBy1x6<T>;
|
||||
<T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean | "asc" | "desc">, collection: lodash.List<T> | null | undefined): T[];
|
||||
<T>(iteratees: lodash.Many<lodash.ValueIteratee<T>>): LodashOrderBy2x1<T>;
|
||||
<T>(iteratees: lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean|string>): LodashOrderBy2x3<T>;
|
||||
<T>(iteratees: lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean|"asc"|"desc">): LodashOrderBy2x3<T>;
|
||||
<T>(iteratees: lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy2x5<T>;
|
||||
<T extends object>(iteratees: lodash.__, orders: lodash.__, collection: T | null | undefined): LodashOrderBy3x4<T>;
|
||||
<T extends object>(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid>, orders: lodash.__, collection: T | null | undefined): LodashOrderBy3x5<T>;
|
||||
<T extends object>(iteratees: lodash.__, orders: lodash.Many<boolean|string>, collection: T | null | undefined): LodashOrderBy3x6<T>;
|
||||
<T extends object>(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.Many<boolean | string>, collection: T | null | undefined): Array<T[keyof T]>;
|
||||
<T extends object>(iteratees: lodash.__, orders: lodash.Many<boolean|"asc"|"desc">, collection: T | null | undefined): LodashOrderBy3x6<T>;
|
||||
<T extends object>(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.Many<boolean | "asc" | "desc">, collection: T | null | undefined): Array<T[keyof T]>;
|
||||
<T extends object>(iteratees: lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.__, collection: T | null | undefined): LodashOrderBy4x5<T>;
|
||||
}
|
||||
interface LodashOrderBy1x1<T> {
|
||||
(orders: lodash.Many<boolean | string>): LodashOrderBy1x3<T>;
|
||||
(orders: lodash.Many<boolean | "asc" | "desc">): LodashOrderBy1x3<T>;
|
||||
(orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy1x5<T>;
|
||||
(orders: lodash.Many<boolean | string>, collection: lodash.List<T> | object | null | undefined): T[];
|
||||
(orders: lodash.Many<boolean | "asc" | "desc">, collection: lodash.List<T> | object | null | undefined): T[];
|
||||
<T1 extends object>(orders: lodash.__, collection: T1 | null | undefined): LodashOrderBy3x5<T>;
|
||||
}
|
||||
interface LodashOrderBy1x2 {
|
||||
@@ -2347,32 +2347,32 @@ declare namespace _ {
|
||||
}
|
||||
interface LodashOrderBy1x4<T> {
|
||||
(iteratees: lodash.Many<(value: T) => lodash.NotVoid>): LodashOrderBy1x5<T>;
|
||||
(iteratees: lodash.__, orders: lodash.Many<boolean | string>): LodashOrderBy1x6<T>;
|
||||
(iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean | string>): T[];
|
||||
(iteratees: lodash.__, orders: lodash.Many<boolean | "asc" | "desc">): LodashOrderBy1x6<T>;
|
||||
(iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean | "asc" | "desc">): T[];
|
||||
(iteratees: lodash.Many<lodash.ValueIteratee<T>>): LodashOrderBy2x5<T>;
|
||||
}
|
||||
type LodashOrderBy1x5<T> = (orders: lodash.Many<boolean|string>) => T[];
|
||||
type LodashOrderBy1x5<T> = (orders: lodash.Many<boolean|"asc"|"desc">) => T[];
|
||||
type LodashOrderBy1x6<T> = (iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>) => T[];
|
||||
interface LodashOrderBy2x1<T> {
|
||||
(orders: lodash.Many<boolean | string>): LodashOrderBy2x3<T>;
|
||||
(orders: lodash.Many<boolean | "asc" | "desc">): LodashOrderBy2x3<T>;
|
||||
(orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy2x5<T>;
|
||||
(orders: lodash.Many<boolean | string>, collection: lodash.List<T> | object | null | undefined): T[];
|
||||
(orders: lodash.Many<boolean | "asc" | "desc">, collection: lodash.List<T> | object | null | undefined): T[];
|
||||
<T1 extends object>(orders: lodash.__, collection: T1 | null | undefined): LodashOrderBy4x5<T>;
|
||||
}
|
||||
interface LodashOrderBy2x3<T> {
|
||||
(collection: lodash.List<T> | null | undefined): T[];
|
||||
(collection: object | null | undefined): object[];
|
||||
}
|
||||
type LodashOrderBy2x5<T> = (orders: lodash.Many<boolean|string>) => T[];
|
||||
type LodashOrderBy2x5<T> = (orders: lodash.Many<boolean|"asc"|"desc">) => T[];
|
||||
interface LodashOrderBy3x4<T> {
|
||||
(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid>): LodashOrderBy3x5<T>;
|
||||
(iteratees: lodash.__, orders: lodash.Many<boolean | string>): LodashOrderBy3x6<T>;
|
||||
(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.Many<boolean | string>): Array<T[keyof T]>;
|
||||
(iteratees: lodash.__, orders: lodash.Many<boolean | "asc" | "desc">): LodashOrderBy3x6<T>;
|
||||
(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.Many<boolean | "asc" | "desc">): Array<T[keyof T]>;
|
||||
(iteratees: lodash.Many<lodash.ValueIteratee<T[keyof T]>>): LodashOrderBy4x5<T>;
|
||||
}
|
||||
type LodashOrderBy3x5<T> = (orders: lodash.Many<boolean|string>) => Array<T[keyof T]>;
|
||||
type LodashOrderBy3x5<T> = (orders: lodash.Many<boolean|"asc"|"desc">) => Array<T[keyof T]>;
|
||||
type LodashOrderBy3x6<T> = (iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>) => Array<T[keyof T]>;
|
||||
type LodashOrderBy4x5<T> = (orders: lodash.Many<boolean|string>) => Array<T[keyof T]>;
|
||||
type LodashOrderBy4x5<T> = (orders: lodash.Many<boolean|"asc"|"desc">) => Array<T[keyof T]>;
|
||||
interface LodashOverArgs {
|
||||
(func: (...args: any[]) => any): LodashOverArgs1x1;
|
||||
(func: lodash.__, transforms: lodash.Many<(...args: any[]) => any>): LodashOverArgs1x2;
|
||||
|
||||
Vendored
+8
-8
@@ -631,22 +631,22 @@ declare module "./index" {
|
||||
orderBy<T>(
|
||||
this: LoDashExplicitSyncWrapper<_.List<T> | null | undefined>,
|
||||
iteratees?: _.Many<_.ListIterator<T, _.NotVoid>>,
|
||||
orders?: _.Many<boolean|string>
|
||||
orders?: _.Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitSyncWrapper<T[]>;
|
||||
orderBy<T>(
|
||||
this: LoDashExplicitSyncWrapper<_.List<T> | null | undefined>,
|
||||
iteratees?: _.Many<_.ListIteratee<T>>,
|
||||
orders?: _.Many<boolean|string>
|
||||
orders?: _.Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitSyncWrapper<T[]>;
|
||||
orderBy<T extends object>(
|
||||
this: LoDashExplicitSyncWrapper<T | null | undefined>,
|
||||
iteratees?: _.Many<_.ObjectIterator<T, _.NotVoid>>,
|
||||
orders?: _.Many<boolean|string>
|
||||
orders?: _.Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitSyncWrapper<Array<T[keyof T]>>;
|
||||
orderBy<T extends object>(
|
||||
this: LoDashExplicitSyncWrapper<T | null | undefined>,
|
||||
iteratees?: _.Many<_.ObjectIteratee<T>>,
|
||||
orders?: _.Many<boolean|string>
|
||||
orders?: _.Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitSyncWrapper<Array<T[keyof T]>>;
|
||||
partition<T>(
|
||||
this: LoDashExplicitSyncWrapper<_.List<T> | null | undefined>,
|
||||
@@ -2227,22 +2227,22 @@ declare module "./index" {
|
||||
orderBy<T>(
|
||||
this: LoDashExplicitAsyncWrapper<_.List<T> | null | undefined>,
|
||||
iteratees?: _.Many<_.ListIterator<T, _.NotVoid>>,
|
||||
orders?: _.Many<boolean|string>
|
||||
orders?: _.Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitAsyncWrapper<T[]>;
|
||||
orderBy<T>(
|
||||
this: LoDashExplicitAsyncWrapper<_.List<T> | null | undefined>,
|
||||
iteratees?: _.Many<_.ListIteratee<T>>,
|
||||
orders?: _.Many<boolean|string>
|
||||
orders?: _.Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitAsyncWrapper<T[]>;
|
||||
orderBy<T extends object>(
|
||||
this: LoDashExplicitAsyncWrapper<T | null | undefined>,
|
||||
iteratees?: _.Many<_.ObjectIterator<T, _.NotVoid>>,
|
||||
orders?: _.Many<boolean|string>
|
||||
orders?: _.Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitAsyncWrapper<Array<T[keyof T]>>;
|
||||
orderBy<T extends object>(
|
||||
this: LoDashExplicitAsyncWrapper<T | null | undefined>,
|
||||
iteratees?: _.Many<_.ObjectIteratee<T>>,
|
||||
orders?: _.Many<boolean|string>
|
||||
orders?: _.Many<boolean|"asc"|"desc">
|
||||
): LoDashExplicitAsyncWrapper<Array<T[keyof T]>>;
|
||||
partition<T>(
|
||||
this: LoDashExplicitAsyncWrapper<_.List<T> | null | undefined>,
|
||||
|
||||
Reference in New Issue
Block a user