Update typescript to 4.9.5
Reviewed By: passy Differential Revision: D46068908 fbshipit-source-id: 4c1ffff8690eec5a10c67d6c5d1aacf224e0f0d4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d6b852d435
commit
fda21e96e8
@@ -237,7 +237,7 @@ export class DataSource<T extends any, KeyType = never> {
|
||||
if (this._recordsById.has(key)) {
|
||||
const existingValue = this._recordsById.get(key);
|
||||
console.warn(
|
||||
`Tried to append value with duplicate key: ${key} (key attribute is ${this.keyAttribute}). Old/new values:`,
|
||||
`Tried to append value with duplicate key: ${key} (key attribute is ${this.keyAttribute.toString()}). Old/new values:`,
|
||||
existingValue,
|
||||
value,
|
||||
);
|
||||
|
||||
@@ -202,7 +202,7 @@ export class SandyPluginInstance extends BasePluginInstance {
|
||||
);
|
||||
},
|
||||
onMessage: (event, cb) => {
|
||||
this.events.on('event-' + event, batched(cb));
|
||||
this.events.on(`event-${event.toString()}`, batched(cb));
|
||||
},
|
||||
onUnhandledMessage: (cb) => {
|
||||
this.events.on('unhandled-event', batched(cb));
|
||||
|
||||
Reference in New Issue
Block a user