mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
fix object-assign (#11709)
This commit is contained in:
committed by
Masahiro Wakame
parent
851b50fa81
commit
6a70dd082e
@@ -1,5 +1,5 @@
|
||||
/// <reference path="object-assign.d.ts" />
|
||||
import objectAssign = require("object-assign");
|
||||
import * as objectAssign from 'object-assign';
|
||||
|
||||
interface Target {
|
||||
hellow: string;
|
||||
@@ -10,7 +10,7 @@ interface Source1 {
|
||||
}
|
||||
|
||||
interface Result extends Target, Source1 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
interface Source2 {
|
||||
@@ -18,7 +18,7 @@ interface Source2 {
|
||||
}
|
||||
|
||||
interface Result2 extends Result, Source2 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
interface Source3 {
|
||||
@@ -26,7 +26,7 @@ interface Source3 {
|
||||
}
|
||||
|
||||
interface Result3 extends Result2, Source3 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
interface Source4 {
|
||||
@@ -34,7 +34,7 @@ interface Source4 {
|
||||
}
|
||||
|
||||
interface Result4 extends Result3, Source4 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
interface Source5 {
|
||||
@@ -42,7 +42,7 @@ interface Source5 {
|
||||
}
|
||||
|
||||
interface Result5 extends Result4, Source5 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
function assign1(): Result {
|
||||
|
||||
Vendored
+1
@@ -10,5 +10,6 @@ declare module "object-assign" {
|
||||
function objectAssign<T, U, V, W, Q>(target: T, source1: U, source2: V, source3: W, source4: Q): T & U & V & W & Q;
|
||||
function objectAssign<T, U, V, W, Q, R>(target: T, source1: U, source2: V, source3: W, source4: Q, source5: R): T & U & V & W & Q & R;
|
||||
function objectAssign(target: any, ...sources: any[]): any;
|
||||
namespace objectAssign { }
|
||||
export = objectAssign;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user