Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize types missing from svgo-node.d.ts in 4.0.0-rc.1 #2078

Open
bschlenk opened this issue Sep 30, 2024 · 0 comments
Open

optimize types missing from svgo-node.d.ts in 4.0.0-rc.1 #2078

bschlenk opened this issue Sep 30, 2024 · 0 comments
Labels

Comments

@bschlenk
Copy link

bschlenk commented Sep 30, 2024

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:

  1. install svgo@4.0.0-rc.1 in a typescript project
  2. try to do import { optimize } from 'svgo'
  3. notice typescript complains

Expected behavior
I'd expect types to exist for svgo's core function.

Screenshots

Screenshot 2024-09-29 at 21 42 09

Desktop (please complete the following information):

  • SVGO Version 4.0.0-rc.1
  • NodeJs Version 20.16.0
  • OS: macOS Sequoia 15.0
@bschlenk bschlenk added the bug label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant