Skip to content

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

Open
@bschlenk

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:

  1. install [email protected] 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions