Skip to content

Export Typescript types and interfaces #780

@Jax-p

Description

@Jax-p

Is there any reason why types and interfaces are not exported?
There is not exported namespace with types, nor any of the types or interfaces in purgecss.d.ts.

Example use-case:

/** Error: Module '"purgecss"' has no exported member 'UserDefinedSafelist'.  */
const myCoolFunction = async (safelist: UserDefinedSafelist) => {
    await new PurgeCSS().purge({
          content: something,
          css: something,
          safelist: safelist
    });
}

Is it be possible to export all non-internal types and interfaces?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions