You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 146: this.settings = Object.assign(this.defaultSettings, this.settings);
Line 147: this.texts = Object.assign(this.defaultTexts, this.texts);
I added these lines to fix it on my end.
//Reference: microsoft/TypeScript#3889
interface ObjectCtor extends ObjectConstructor {
assign(target: any, ...sources: any[]): any;
}
declare var Object: ObjectCtor;
Typescript Version: 1.0.3.0
Not sure if the latest typescript would've fixed my issue :)
The text was updated successfully, but these errors were encountered:
Object.assign does not exist in ES5, so you either need to
include a polyfill in your project (such as core-js)
OR configure your tsconfig to build for ES6 or ES2015 (this may require a new version of typescript, I'm not certain
OR include a type typings reference for ES6 libraries (this is what I am using in my current project as I have one browser to support that does not support the full ES6 syntax, but does support Object.assign and other new features)
Line 146: this.settings = Object.assign(this.defaultSettings, this.settings);
Line 147: this.texts = Object.assign(this.defaultTexts, this.texts);
I added these lines to fix it on my end.
//Reference: microsoft/TypeScript#3889
interface ObjectCtor extends ObjectConstructor {
assign(target: any, ...sources: any[]): any;
}
declare var Object: ObjectCtor;
Typescript Version: 1.0.3.0
Not sure if the latest typescript would've fixed my issue :)
The text was updated successfully, but these errors were encountered: