3 more fixes for TS 3.7 (#38777)

* 3 more fixes for TS 3.7

lyricist: patch tests until TS fixes Promise.all
react-relay: fix lint
react-sortable-tree: upgrade react-dnd dependency

The change to lyricist is just a workaround for now.

React-sortable-tree's upgrade is the same as other dependents of
react-dnd that I did yesterday.

* More compatible workaround for lyricist
This commit is contained in:
Nathan Shively-Sanders
2019-10-01 10:37:32 -07:00
committed by GitHub
parent 643edf5b1c
commit 82a345dfc5
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ Promise
const artistByName: Artist = results[2];
const searchResult: SearchResult[] = results[3];
const song: Song = results[4];
const songsByArtist: SongByArtist[] = results[5];
const songsByArtist: SongByArtist[] = results[5] as SongByArtist[];
console.log('album', album.name);
console.log('artist', artist.name);

View File

@@ -647,7 +647,7 @@ requestSubscription(
const notification = !!rootField ? rootField.getLinkedRecord('notification') : null;
// Add it to a connection
const viewer = store.getRoot().getLinkedRecord('viewer');
const notifications = ConnectionHandler.getConnection(viewer!, 'notifications');
const notifications = ConnectionHandler.getConnection(viewer, 'notifications');
const edge = ConnectionHandler.createEdge(
store,
notifications!,

View File

@@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"react-dnd": "5 || 6 || 7"
"react-dnd": "^9.3.1"
}
}