From 98aefd3cf6023e087a446a0402f4887ed753f305 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Wed, 15 Sep 2021 19:02:54 +0200 Subject: [PATCH] [fix] make Source type in preprocess private (#6726) Is only used internally, shouldn't be exposed. Fixes #6622 --- CHANGELOG.md | 4 ++++ src/compiler/preprocess/types.ts | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf53e23bfa..427eec6a91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Svelte changelog +## Unreleased + +* Hide private preprocess typings ([#6622](https://github.com/sveltejs/svelte/issues/6622)) + ## 3.42.5 * In `draw` transition, account for `stroke-linecap` in determining length ([#4540](https://github.com/sveltejs/svelte/issues/4540)) diff --git a/src/compiler/preprocess/types.ts b/src/compiler/preprocess/types.ts index 94007371cc..4ac441b5e6 100644 --- a/src/compiler/preprocess/types.ts +++ b/src/compiler/preprocess/types.ts @@ -1,5 +1,8 @@ import { Location } from 'locate-character'; +/** + * @internal + */ export interface Source { source: string; get_location: (search: number) => Location;