Skip to content

Commit 0bd9b2e

Browse files
authored
Merge pull request #16 from graphemecluster/minor-bug-fix
Minor Bug Fix
2 parents 2bcb317 + 443e5eb commit 0bd9b2e

12 files changed

+261
-214
lines changed

docs/diff/es2015.core.d.ts.md

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,13 @@ Index: es2015.core.d.ts
126126
/**
127127
* The value of the largest integer n such that n and n + 1 are both exactly representable as
128128
* a Number value.
129-
@@ -273,45 +282,26 @@
129+
@@ -273,49 +282,20 @@
130130
/**
131131
* Copy the values of all of the enumerable own properties from one or more source objects to a
132132
* target object. Returns the target object.
133133
* @param target The target object to copy to.
134134
- * @param source The source object from which to copy properties.
135-
+ * @param sources One or more source objects from which to copy properties
136-
*/
135+
- */
137136
- assign<T, U>(target: T, source: U): T & U;
138137
-
139138
- /**
@@ -154,39 +153,35 @@ Index: es2015.core.d.ts
154153
- * @param source3 The third source object from which to copy properties.
155154
- */
156155
- assign<T, U, V, W>(
157-
+ assign<T, Ts extends readonly any[]>(
158-
target: T,
156+
- target: T,
159157
- source1: U,
160158
- source2: V,
161159
- source3: W
162160
- ): T & U & V & W;
163-
+ ...sources: Ts
164-
+ ): CheckNonNullable<
165-
+ T,
166-
+ First<
167-
+ UnionToIntersection<
168-
+ | [T]
169-
+ | {
170-
+ [K in keyof Ts]: [Ts[K]];
171-
+ }[number]
172-
+ >
173-
+ >
174-
+ >;
175-
176-
/**
161+
-
162+
- /**
177163
- * Copy the values of all of the enumerable own properties from one or more source objects to a
178164
- * target object. Returns the target object.
179165
- * @param target The target object to copy to.
180-
- * @param sources One or more source objects from which to copy properties
181-
- */
166+
* @param sources One or more source objects from which to copy properties
167+
*/
182168
- assign(target: object, ...sources: any[]): any;
183-
-
184-
- /**
169+
+ assign<T, Ts extends readonly any[]>(
170+
+ target: CheckNonNullable<T>,
171+
+ ...sources: Ts
172+
+ ): Intersect<[T, ...Ts]>;
173+
174+
/**
185175
* Returns an array of all symbol properties found directly on object o.
186176
* @param o Object to retrieve the symbols from.
187177
*/
188-
getOwnPropertySymbols(o: any): symbol[];
189-
@@ -326,16 +316,23 @@
178+
- getOwnPropertySymbols(o: any): symbol[];
179+
+ getOwnPropertySymbols<T>(o: CheckNonNullable<T>): symbol[];
180+
181+
/**
182+
* Returns the names of the enumerable string properties and methods of an object.
183+
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
184+
@@ -326,16 +306,23 @@
190185
* Returns true if the values are the same value, false otherwise.
191186
* @param value1 The first value.
192187
* @param value2 The second value.
@@ -212,7 +207,7 @@ Index: es2015.core.d.ts
212207

213208
interface ReadonlyArray<T> {
214209
/**
215-
@@ -346,20 +343,25 @@
210+
@@ -346,20 +333,25 @@
216211
* immediately returns that element value. Otherwise, find returns undefined.
217212
* @param thisArg If provided, it will be used as the this value for each invocation of
218213
* predicate. If it is not provided, undefined is used instead.
@@ -249,7 +244,7 @@ Index: es2015.core.d.ts
249244

250245
/**
251246
* Returns the index of the first element in the array where predicate is true, and -1
252-
@@ -369,11 +371,11 @@
247+
@@ -369,11 +361,11 @@
253248
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
254249
* @param thisArg If provided, it will be used as the this value for each invocation of
255250
* predicate. If it is not provided, undefined is used instead.
@@ -264,7 +259,7 @@ Index: es2015.core.d.ts
264259
}
265260

266261
interface RegExp {
267-
@@ -433,26 +435,17 @@
262+
@@ -433,26 +425,17 @@
268263
* same as the corresponding elements of this object (converted to a String) starting at
269264
* endPosition – length(this). Otherwise returns false.
270265
*/

docs/diff/es2017.object.d.ts.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Index: es2017.object.d.ts
55
===================================================================
66
--- es2017.object.d.ts
77
+++ es2017.object.d.ts
8-
@@ -2,34 +2,45 @@
8+
@@ -2,34 +2,42 @@
99
/**
1010
* Returns an array of values of the enumerable properties of an object
1111
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
@@ -23,7 +23,7 @@ Index: es2017.object.d.ts
2323
+ * Returns an array of values of the enumerable properties of an object
2424
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2525
+ */
26-
+ values<T>(o: T): CheckNonNullable<T, unknown[]>;
26+
+ values<T>(o: CheckNonNullable<T>): unknown[];
2727

2828
/**
2929
* Returns an array of key/values of the enumerable properties of an object
@@ -42,7 +42,7 @@ Index: es2017.object.d.ts
4242
+ * Returns an array of key/values of the enumerable properties of an object
4343
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
4444
+ */
45-
+ entries<T>(o: T): CheckNonNullable<T, [string, unknown][]>;
45+
+ entries<T>(o: CheckNonNullable<T>): [string, unknown][];
4646

4747
/**
4848
* Returns an object containing all own property descriptors of an object
@@ -52,15 +52,11 @@ Index: es2017.object.d.ts
5252
- o: T
5353
- ): { [P in keyof T]: TypedPropertyDescriptor<T[P]> } & {
5454
- [x: string]: PropertyDescriptor;
55-
- };
56-
+ getOwnPropertyDescriptors<T>(o: T): CheckNonNullable<
57-
+ T,
58-
+ {
59-
+ [P in keyof T]: TypedPropertyDescriptor<T[P]>;
60-
+ } & {
61-
+ [x: string]: PropertyDescriptor;
62-
+ }
63-
+ >;
55+
+ getOwnPropertyDescriptors<T>(o: CheckNonNullable<T>): {
56+
+ [P in keyof T]: TypedPropertyDescriptor<T[P]>;
57+
+ } & {
58+
+ [x: PropertyKey]: PropertyDescriptor;
59+
};
6460
}
6561

6662
```

0 commit comments

Comments
 (0)