Port forward to ts-rs 8.1 (currently: git only; waiting for 8.1.1+) (#2443)

Port forward to ts-rs 8.1

We're just waiting on a release that includes a PR that we sent[1] for this
to use the cargo version. For now we'll have to use the git release.

[1]: c5109a00e4
This commit is contained in:
Paul Tagliamonte
2024-05-22 14:22:07 -04:00
committed by GitHub
parent e94b1bc12a
commit e3b9a6e5d8
8 changed files with 56 additions and 31 deletions

View File

@ -45,7 +45,7 @@ export function sortProject(project: FileEntry[]): FileEntry[] {
if ('children' in fileOrDir && fileOrDir.children !== undefined) {
return {
...fileOrDir,
children: sortProject(fileOrDir.children),
children: sortProject(fileOrDir.children || []),
}
} else {
return fileOrDir