[ember] Fix wrongly deprecated Ember.assign

This commit is contained in:
simonihmig 2019-02-11 20:40:23 +01:00 committed by Mike North
parent 112076b653
commit 465aea12e4
3 changed files with 2 additions and 5 deletions

View File

@ -498,7 +498,6 @@ export namespace Ember {
// TODO: replace with an es6 reexport when declare module 'ember' is removed
/**
* Copy properties from a source object to a target object.
* @deprecated Use Object.assign
*/
const assign: typeof EmberPolyfillsNs.assign;
/**

View File

@ -3131,7 +3131,7 @@ declare module 'ember' {
function isPresent(obj: any): boolean;
/**
* Merge the contents of two objects together into the first object.
* @deprecated Use Object.assign
* @deprecated Use Ember.assign
*/
function merge<T, U>(original: T, updates: U): T & U;
/**
@ -3284,7 +3284,6 @@ declare module 'ember' {
function typeOf(item: any): string;
/**
* Copy properties from a source object to a target object.
* @deprecated Use Object.assign
*/
function assign<T, U>(target: T, source: U): T & U;
function assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;

View File

@ -8,7 +8,6 @@ import { Mix, Mix3, Mix4 } from './types';
/**
* Copy properties from a source object to a target object.
* @deprecated Use Object.assign
*/
export function assign<T extends object, U extends object>(target: T, source: U): Mix<T, U>;
export function assign<T extends object, U extends object, V extends object>(target: T, source1: U, source2: V): Mix3<T, U, V>;
@ -17,6 +16,6 @@ export function assign(target: object, ...sources: object[]): any;
/**
* Merge the contents of two objects together into the first object.
* @deprecated Use Object.assign
* @deprecated Use Ember.assign
*/
export function merge<T extends object, U extends object>(original: T, updates: U): Mix<T, U>;