Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/language-server/src/plugins/html/dataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,18 @@ const videoAttributes: IAttributeData[] = [
}
];

const indeterminateAttribute: IAttributeData = {
name: 'indeterminate',
description: 'Available for type="checkbox"'
};

const addAttributes: Record<string, IAttributeData[]> = {
select: [{ name: 'bind:value' }],
input: [
{ name: 'bind:value' },
{ name: 'bind:group', description: 'Available for type="radio" and type="checkbox"' }
{ name: 'bind:group', description: 'Available for type="radio" and type="checkbox"' },
indeterminateAttribute,
{...indeterminateAttribute, name: 'bind:indeterminate'}
],
textarea: [{ name: 'bind:value' }],
video: [...mediaAttributes, ...videoAttributes],
Expand Down
3 changes: 3 additions & 0 deletions packages/svelte2tsx/svelte-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ declare namespace svelte.JSX {
allow?: string;
allowfullscreen?: boolean;
allowtransparency?: boolean;
allowpaymentrequest?: boolean;
alt?: string;
async?: boolean;
autocomplete?: string;
Expand Down Expand Up @@ -296,6 +297,7 @@ declare namespace svelte.JSX {
inputmode?: string;
integrity?: string;
is?: string;
ismap?: boolean;
keyparams?: string;
keytype?: string;
kind?: string;
Expand Down Expand Up @@ -685,6 +687,7 @@ declare namespace svelte.JSX {
interface SvelteInputProps extends HTMLProps<HTMLInputElement> {
group?: any;
files?: FileList | null;
indeterminate?: boolean;
}

interface SvelteWindowProps {
Expand Down