Open
Description
Describe the bug
I'm using 4.0.0-rc.1 to get around a bug in v3, but types are missing for the optimize
function. I'm currently working around it by doing
// @ts-expect-error
import { optimize } from 'svgo'
but it'd be nice to have types here!
To Reproduce
Steps to reproduce the behavior:
- install
[email protected]
in a typescript project - try to do
import { optimize } from 'svgo'
- notice typescript complains
Expected behavior
I'd expect types to exist for svgo's core function.
Screenshots

Desktop (please complete the following information):
- SVGO Version 4.0.0-rc.1
- NodeJs Version 20.16.0
- OS: macOS Sequoia 15.0
Activity