Skip to content

Clarify Documentation on Emitting Declarations (.d.ts) Files #1494

@phil-lgr

Description

@phil-lgr

Expected Behaviour

Have an option to output declarations files in webpack output folder

Actual Behaviour

ts-loader does not support it?

The official documentation points to a 7 years old plugin (https://github.com/TypeStrong/ts-loader#declarations-dts)

Steps to Reproduce the Problem

Declarations (.d.ts)
To output a built .d.ts file, you can set "declaration": true in your tsconfig, and use the DeclarationBundlerPlugin in your webpack config.

Did I miss something? I'd be happy to PR an update to the docs if it's out of date.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions