chore: More typescript FIXME's removed
This commit is contained in:
@@ -343,8 +343,7 @@ describe("#membershipUserIds", () => {
|
||||
// Make 6 users
|
||||
const users = await Promise.all(
|
||||
Array(6)
|
||||
// @ts-expect-error ts-migrate(2554) FIXME: Expected 1-3 arguments, but got 0.
|
||||
.fill()
|
||||
.fill(undefined)
|
||||
.map(() =>
|
||||
buildUser({
|
||||
teamId,
|
||||
|
||||
@@ -353,7 +353,7 @@ class Collection extends ParanoidModel {
|
||||
}
|
||||
|
||||
getDocumentTree = function (documentId: string): NavigationNode {
|
||||
let result: NavigationNode;
|
||||
let result!: NavigationNode;
|
||||
|
||||
const loopChildren = (documents: NavigationNode[]) => {
|
||||
if (result) {
|
||||
@@ -375,7 +375,6 @@ class Collection extends ParanoidModel {
|
||||
|
||||
loopChildren(this.documentStructure);
|
||||
|
||||
// @ts-expect-error used before undefined
|
||||
return result;
|
||||
};
|
||||
|
||||
@@ -479,7 +478,7 @@ class Collection extends ParanoidModel {
|
||||
};
|
||||
|
||||
getDocumentParents = function (documentId: string): string[] | void {
|
||||
let result: string[];
|
||||
let result!: string[];
|
||||
|
||||
const loopChildren = (documents: NavigationNode[], path: string[] = []) => {
|
||||
if (result) {
|
||||
@@ -499,7 +498,6 @@ class Collection extends ParanoidModel {
|
||||
loopChildren(this.documentStructure);
|
||||
}
|
||||
|
||||
// @ts-expect-error used before undefined
|
||||
return result;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user