fix: `print(ast)` types (#17255)

* fix types?

* fix types?

* fix types?

* fix types?

* revert stuff

* check fix?

* comment

* fix types

* update esrap

* esrap 2.2.1

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
pull/17294/head
Manuel 4 days ago committed by GitHub
parent 0e1c98ea11
commit 5b5f688ddd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -176,7 +176,7 @@
"clsx": "^2.1.1",
"devalue": "^5.5.0",
"esm-env": "^1.2.1",
"esrap": "^2.2.0",
"esrap": "^2.2.1",
"is-reference": "^3.0.3",
"locate-character": "^3.0.0",
"magic-string": "^0.30.11",

@ -1,4 +1,5 @@
import ts from 'esrap/languages/ts';
import 'esrap'; // This import is required to make typescript happy when `skipLibCheck` is enabled
import type ts from 'esrap/languages/ts';
export type Options = {
getLeadingComments?: NonNullable<Parameters<typeof ts>[0]>['getLeadingComments'] | undefined;

@ -1,3 +1,5 @@
/// <reference types="esrap" />
declare module 'svelte' {
/**
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.

@ -96,8 +96,8 @@ importers:
specifier: ^1.2.1
version: 1.2.1
esrap:
specifier: ^2.2.0
version: 2.2.0
specifier: ^2.2.1
version: 2.2.1
is-reference:
specifier: ^3.0.3
version: 3.0.3
@ -1660,8 +1660,8 @@ packages:
resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==}
engines: {node: '>=0.10'}
esrap@2.2.0:
resolution: {integrity: sha512-WBmtxe7R9C5mvL4n2le8nMUe4mD5V9oiK2vJpQ9I3y20ENPUomPcphBXE8D1x/Bm84oN1V+lOfgXxtqmxTp3Xg==}
esrap@2.2.1:
resolution: {integrity: sha512-GiYWG34AN/4CUyaWAgunGt0Rxvr1PTMlGC0vvEov/uOQYWne2bpN03Um+k8jT+q3op33mKouP2zeJ6OlM+qeUg==}
esrecurse@4.3.0:
resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
@ -4244,7 +4244,7 @@ snapshots:
dependencies:
estraverse: 5.3.0
esrap@2.2.0:
esrap@2.2.1:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0

Loading…
Cancel
Save