replaced SvelteComponentTyped with SvelteComponent (#1517)

Co-authored-by: Jan Richter <j.richter@vanlanschotkempen>
This commit is contained in:
Jan
2023-08-28 19:21:04 +02:00
committed by GitHub
co-authored by Jan Richter
parent a46114b3e7
commit 0e307087f6
@@ -18,7 +18,7 @@ const writeDeclarationFile = (typesFile, directory, content) => {
};
const getComponentImport = (componentName) =>
`export declare class ${componentName} extends SvelteComponentTyped<IconProps, IconEvents, {}> {}\n`;
`export declare class ${componentName} extends SvelteComponent<IconProps, IconEvents, {}> {}\n`;
const ICONS_DIR = path.resolve(currentDir, '../../../icons');
const TYPES_FILE = 'lucide-svelte.d.ts';
@@ -27,7 +27,7 @@ const TYPES_FILE = 'lucide-svelte.d.ts';
let declarationFileContent = `\
/// <reference types="svelte" />
/// <reference types="svelte-check/dist/src/svelte-jsx" />
import { SvelteComponentTyped } from "svelte";
import { SvelteComponent } from "svelte";
interface IconProps extends Partial<svelte.JSX.SVGProps<SVGSVGElement>> {
color?: string
@@ -41,7 +41,7 @@ interface IconEvents {
[evt: string]: CustomEvent<any>;
}
export type Icon = SvelteComponentTyped<IconProps, IconEvents, {}>
export type Icon = SvelteComponent<IconProps, IconEvents, {}>
// Generated icons
`;