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