Skip to content

Commit 4d15ef2

Browse files
authoredNov 26, 2023
fix: use .d.ts file extension for type definitions (#1780)
1 parent 25dc073 commit 4d15ef2

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed
 

‎CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You should read our [Plugin Architecture](https://svgo.dev/docs/plugins-api/) do
5555

5656
SVGO plugins can optionally have parameters. These can be consumed by the plugin to tailor the behavior.
5757

58-
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.
58+
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.
5959

6060
## Documentation
6161

‎lib/types.ts ‎lib/types.d.ts

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.