rename AttachmentsKey to Attachments

pull/15091/head
Jayden Carey 2 years ago
parent 01cad3e056
commit 301552872c

@ -31,7 +31,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { AttachmentsKey } from 'svelte/attachments';
import { Attachments } from 'svelte/attachments';
// Note: We also allow `null` as a valid value because Svelte treats this the same as `undefined`
@ -863,7 +863,7 @@ export interface HTMLAttributes<T extends EventTarget> extends AriaAttributes, D
[key: `data-${string}`]: any;
// allow any attachment
[AttachmentsKey]: Array<(node: T) => void | (() => void)>;
[Attachments]: Array<(node: T) => void | (() => void)>;
}
export type HTMLAttributeAnchorTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});

@ -1 +1 @@
export const AttachmentsKey = Symbol.for('svelte.attachments');
export const Attachments = Symbol.for('svelte.attachments');

@ -1,4 +1,4 @@
/**
* A unique symbol used for defining the attachments to be applied to an element or component.
*/
export const AttachmentsKey: unique symbol;
export const Attachments: unique symbol;

@ -597,7 +597,7 @@ declare module 'svelte/attachments' {
/**
* A unique symbol used for defining the attachments to be applied to an element or component.
*/
export const AttachmentsKey: unique symbol;
export const Attachments: unique symbol;
export {};
}

Loading…
Cancel
Save