interface SvelteOptions {
    accessors?: boolean;
    attributes: Attribute[];
    css?: "injected";
    customElement?: {
        extend?: Identifier | ArrowFunctionExpression;
        props?: Record<
            string,
            {
                attribute?: string;
                reflect?: boolean;
                type?: "Array"
                | "Boolean"
                | "Number"
                | "Object"
                | "String";
            },
        >;
        shadow?: "open"
        | "none";
        tag?: string;
    };
    end: number;
    immutable?: boolean;
    namespace?: Namespace;
    preserveWhitespace?: boolean;
    runes?: boolean;
    start: number;
}

Properties

accessors?: boolean
attributes: Attribute[]
css?: "injected"
customElement?: {
    extend?: Identifier | ArrowFunctionExpression;
    props?: Record<
        string,
        {
            attribute?: string;
            reflect?: boolean;
            type?: "Array"
            | "Boolean"
            | "Number"
            | "Object"
            | "String";
        },
    >;
    shadow?: "open"
    | "none";
    tag?: string;
}

Type declaration

  • Optionalextend?: Identifier | ArrowFunctionExpression

    Is of type

    (ceClass: new () => HTMLElement) => new () => HTMLElement
    
  • Optionalprops?: Record<
        string,
        {
            attribute?: string;
            reflect?: boolean;
            type?: "Array"
            | "Boolean"
            | "Number"
            | "Object"
            | "String";
        },
    >
  • Optionalshadow?: "open" | "none"
  • Optionaltag?: string
end: number
immutable?: boolean
namespace?: Namespace
preserveWhitespace?: boolean
runes?: boolean
start: number