lodash: support ReadonlyArray for specifying property names

Closes #23278
This commit is contained in:
Georgii Dolzhykov
2018-02-05 02:09:50 +02:00
parent 8058968995
commit 3d46301f55
+2 -2
View File
@@ -2,7 +2,7 @@ import _ = require("../index");
type GlobalPartial<T> = Partial<T>;
declare module "../index" {
type PartialObject<T> = GlobalPartial<T>;
type Many<T> = T | T[];
type Many<T> = T | ReadonlyArray<T>;
interface LoDashStatic {
/**
* Creates a lodash object which wraps value to enable implicit method chain sequences.
@@ -252,4 +252,4 @@ declare module "../index" {
type LoDashExplicitNillableObjectWrapper<T> = LoDashExplicitWrapper<T | null | undefined>;
type LoDashExplicitNumberArrayWrapper = LoDashExplicitWrapper<number[]>;
type LoDashExplicitStringWrapper = LoDashExplicitWrapper<string>;
}
}