Skip to content

Commit

Permalink
simplify the type
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Jan 11, 2025
1 parent d7b588f commit 0e28cc1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/eslint-plugin-svelte/src/utils/svelte-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ import { getFilename, getSourceCode } from './compat.js';
const isRunInBrowser = !fs.readFileSync;

export type SvelteContext = (
| ({
| {
svelteVersion: '3/4';
} & {
svelteFileType: '.svelte' | null;
runes: null;
})
}
| ({
svelteVersion: '5';
} & (
Expand Down

0 comments on commit 0e28cc1

Please sign in to comment.