mirror of https://github.com/sveltejs/svelte
parent
51c540c66f
commit
561ed8f3d9
@ -1,4 +1,9 @@
|
||||
declare const brand: unique symbol;
|
||||
type Brand<B> = { [brand]: B };
|
||||
type Branded<T, B> = T & Brand<B>;
|
||||
type AttachmentsKeySymbol = Branded<symbol, '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 AttachmentsKey: AttachmentsKeySymbol;
|
||||
|
||||
Loading…
Reference in new issue