Enable TS noImplicitAny in web (#31636)

GitOrigin-RevId: 18881694770f2476c475f8fef4c6a2678a2a12fe
This commit is contained in:
Anna Claire Fields
2026-03-27 09:05:30 +00:00
committed by Copybot
parent b3489a6792
commit 6113c6c291
58 changed files with 1423 additions and 281 deletions
+13
View File
@@ -149,6 +149,9 @@ function getProjectIds() {
.map(x => x._id.toString())
}
/**
* @param {any} projectId
*/
async function getDocs(projectId) {
const mongoDocs = db.docs.find(
{
@@ -192,6 +195,10 @@ async function getDocs(projectId) {
return docs
}
/**
* @param {any} projectId
* @param {any} docs
*/
async function findDanglingThreadIds(projectId, docs) {
const threadIds = new Set()
for (const doc of docs) {
@@ -219,6 +226,9 @@ async function findDanglingThreadIds(projectId, docs) {
return Array.from(threadIds)
}
/**
* @param {any} docs
*/
function docsHaveTrackedChanges(docs) {
for (const doc of docs) {
const changes = doc.ranges?.changes ?? []
@@ -229,6 +239,9 @@ function docsHaveTrackedChanges(docs) {
return false
}
/**
* @param {any} docs
*/
function docsHaveAnyComments(docs) {
for (const doc of docs) {
const comments = doc.ranges?.comments ?? []