diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e0decd108..04b133216 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,7 +55,7 @@ You should read our [Plugin Architecture](https://svgo.dev/docs/plugins-api/) do SVGO plugins can optionally have parameters. These can be consumed by the plugin to tailor the behavior. -As types are managed through TypeScript definition files and JSDocs, you must define the parameter types in [`plugins/plugin-types.ts`](./plugins/plugins-types.ts) for built-in plugins. Then you'll have code completion and type checking as you'd expect while editing the plugin if your code editor supports that. +As types are managed through TypeScript definition files and JSDocs, you must define the parameter types in [`plugins/plugin-types.d.ts`](https://github.com/svg/svgo/blob/main/plugins/plugins-types.d.ts) for built-in plugins. Then you'll have code completion and type checking as you'd expect while editing the plugin if your code editor supports that. ## Documentation diff --git a/lib/types.ts b/lib/types.d.ts similarity index 100% rename from lib/types.ts rename to lib/types.d.ts diff --git a/plugins/plugins-types.ts b/plugins/plugins-types.d.ts similarity index 100% rename from plugins/plugins-types.ts rename to plugins/plugins-types.d.ts