Skip to content

Commit 3015528

Browse files
committed
rename AttachmentsKey to Attachments
1 parent 01cad3e commit 3015528

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/svelte/elements.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
3232
// TypeScript Version: 2.8
3333

34-
import { AttachmentsKey } from 'svelte/attachments';
34+
import { Attachments } from 'svelte/attachments';
3535

3636
// Note: We also allow `null` as a valid value because Svelte treats this the same as `undefined`
3737

@@ -863,7 +863,7 @@ export interface HTMLAttributes<T extends EventTarget> extends AriaAttributes, D
863863
[key: `data-${string}`]: any;
864864

865865
// allow any attachment
866-
[AttachmentsKey]: Array<(node: T) => void | (() => void)>;
866+
[Attachments]: Array<(node: T) => void | (() => void)>;
867867
}
868868

869869
export type HTMLAttributeAnchorTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const AttachmentsKey = Symbol.for('svelte.attachments');
1+
export const Attachments = Symbol.for('svelte.attachments');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
22
* A unique symbol used for defining the attachments to be applied to an element or component.
33
*/
4-
export const AttachmentsKey: unique symbol;
4+
export const Attachments: unique symbol;

packages/svelte/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ declare module 'svelte/attachments' {
597597
/**
598598
* A unique symbol used for defining the attachments to be applied to an element or component.
599599
*/
600-
export const AttachmentsKey: unique symbol;
600+
export const Attachments: unique symbol;
601601

602602
export {};
603603
}

0 commit comments

Comments
 (0)