Skip to content

Commit

Permalink
(fix) svelte:document types (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlyu123 authored Jul 29, 2023
1 parent f8d7c20 commit 7a988ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Svelte Plugin', () => {
assert.deepStrictEqual(diagnostics, []);
});

describe.only('#formatDocument', () => {
describe('#formatDocument', () => {
function stubPrettierV2(config: any) {
const formatStub = sinon.stub().returns('formatted');

Expand Down
1 change: 1 addition & 0 deletions packages/svelte2tsx/svelte-jsx-v4.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ declare namespace svelteHTML {
// Svelte specific
'svelte:window': HTMLProps<'svelte:window', HTMLAttributes>;
'svelte:body': HTMLProps<'svelte:body', HTMLAttributes>;
'svelte:document': HTMLProps<'svelte:document', HTMLAttributes>;
'svelte:fragment': { slot?: string };
'svelte:options': { [name: string]: any };
'svelte:head': { [name: string]: any };
Expand Down
1 change: 1 addition & 0 deletions packages/svelte2tsx/svelte-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ declare namespace svelteHTML {
// Svelte specific
'svelte:window': HTMLProps<'svelte:window', HTMLAttributes>;
'svelte:body': HTMLProps<'svelte:body', HTMLAttributes>;
'svelte:document': HTMLProps<'svelte:document', HTMLAttributes>;
'svelte:fragment': { slot?: string };
'svelte:options': { [name: string]: any };
'svelte:head': { [name: string]: any };
Expand Down

0 comments on commit 7a988ea

Please sign in to comment.