From 5f6b078df5032aac5e70d44867da8ea537edcd3b Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Mon, 11 Dec 2023 21:39:40 +0100 Subject: [PATCH] lint --- packages/migrate/migrations/sveltekit-2/migrate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/migrate/migrations/sveltekit-2/migrate.js b/packages/migrate/migrations/sveltekit-2/migrate.js index 3b40b4083a62..64c5b44f7283 100644 --- a/packages/migrate/migrations/sveltekit-2/migrate.js +++ b/packages/migrate/migrations/sveltekit-2/migrate.js @@ -1,5 +1,5 @@ import fs from 'node:fs'; -import { Project, Node, SyntaxKind, FunctionDeclaration, VariableDeclaration } from 'ts-morph'; +import { Project, Node, SyntaxKind } from 'ts-morph'; import { log_migration, log_on_ts_modification, update_pkg } from '../../utils.js'; import path from 'node:path'; @@ -172,7 +172,7 @@ function add_cookie_note(file_path, source) { } const some_function = call.getFirstAncestor( - /** @returns {ancestor is FunctionDeclaration | VariableDeclaration} */ + /** @returns {ancestor is import('ts-morph').FunctionDeclaration | import('ts-morph').VariableDeclaration} */ (ancestor) => { // Check if this is inside a function const fn = ancestor.asKind(SyntaxKind.FunctionDeclaration);