You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Tools: Implement @typescript-eslint/no-explicit-any rule
This commit is contained in:
@@ -74,9 +74,11 @@ export default class NoteResource extends BaseModel {
|
||||
|
||||
public static async associatedNoteIds(resourceId: string): Promise<string[]> {
|
||||
const rows = await this.modelSelectAll('SELECT note_id FROM note_resources WHERE resource_id = ? AND is_associated = 1', [resourceId]);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
return rows.map((r: any) => r.note_id);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
public static async associatedResourceNotes(resourceIds: string[], options: LoadOptions = null): Promise<Record<string, any>> {
|
||||
if (!resourceIds.length) return {};
|
||||
|
||||
@@ -168,6 +170,7 @@ export default class NoteResource extends BaseModel {
|
||||
`,
|
||||
[cutOffTime],
|
||||
);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
return output.map((r: any) => r.resource_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user