fix(build,types): migrate smart config filename and tighten TypeScript null handling

This commit is contained in:
2026-03-27 16:32:24 +00:00
parent 61751cd320
commit 6375674e1c
8 changed files with 3243 additions and 5989 deletions

View File

@@ -35,7 +35,9 @@ export class Scroller {
optionsArg: Parameters<typeof this.sweetScroller.toElement>[1]
) {
this.sweetScroller.toElement(elementArg, optionsArg);
await plugins.smartdelay.delayFor(optionsArg.duration);
if (optionsArg?.duration) {
await plugins.smartdelay.delayFor(optionsArg.duration);
}
}
/**