Numberflow svelte 5 props seem to be wrongly typed as `any`

Author: cachesdevCreated Apr 18, 2026Updated Jul 10, 2026

Minimal reproduction

type bug, sandbox not really useful here

Describe the bug and the steps to reproduce it

1 - install and import NumberFlow on a svelte component 2 - go to definition on NumberFlow 3 - props will be typed as any

possibly a recent issue only on svelte 5?

this is the d.ts code I see:

typescript
import { SvelteComponent } from "svelte";
import NumberFlowLite, { type Data } from 'number-flow/lite';
export declare class NumberFlowElement extends NumberFlowLite {
    set __svelte_batched(batched: boolean);
    set data(data: Data | undefined);
}
declare const __propDef: {
    props: any; // <- typed as any
    slots: {};
    events: {
        animationsstart: CustomEvent<undefined>;
        animationsfinish: CustomEvent<undefined>;
    };
};
type NumberFlowProps_ = typeof __propDef.props; // <- typed as any
export { NumberFlowProps_ as NumberFlowProps };
export type NumberFlowEvents = typeof __propDef.events;
export type NumberFlowSlots = typeof __propDef.slots;
export default class NumberFlow extends SvelteComponent<NumberFlowProps_, NumberFlowEvents, NumberFlowSlots> {
}  // <- typed as any