From c910f3598357085aa8c6b9b9db9fc2c59ef08b6e Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Fri, 2 Sep 2022 12:57:40 +0100 Subject: [PATCH 1/2] Update TypeScript types --- src/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index fc70688..5c38097 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,2 +1,9 @@ -declare function plugin(options?: { className?: string, target?: 'modern' | 'legacy' }): Function +declare function plugin(options?: Partial<{ className: string; target: 'modern' | 'legacy' }>): { + handler: () => void +} + +declare namespace plugin { + const __isOptionsFunction: true +} + export = plugin From 1d156fba384ba1b75fb1bfdeee62888309deb7d1 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Fri, 2 Sep 2022 12:58:18 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4b14be..cb0faf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing yet! +### Fixed + +- Update TypeScript types ([#284](https://github.com/tailwindlabs/tailwindcss-typography/pull/284/files)) ## [0.5.6] - 2022-09-01