0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 16:36:44 +01:00

feat: Add -replacestate/-keepfocus to SvelteKit anchor tag props (#8281)

This commit is contained in:
Andrew Walker 2023-02-21 10:23:13 +00:00 committed by GitHub
parent 5a3a1e488a
commit b0fed256f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
elements/index.d.ts vendored
View File

@ -540,10 +540,12 @@ export interface HTMLAttributes<T extends EventTarget> extends AriaAttributes, D
'bind:textContent'?: string | undefined | null;
// SvelteKit
'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
'data-sveltekit-preload-code'?: true | '' | 'eager' | 'viewport' | 'hover' | 'tap' | 'off' | undefined | null;
'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;
'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
}
export type HTMLAttributeAnchorTarget =