From a6b2ddd1641103238bfa765789ccdbeb49ac276c Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Fri, 2 Sep 2022 10:28:09 +0100 Subject: [PATCH 1/2] Update types --- src/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index e54342f..1918866 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,2 +1,7 @@ -declare function plugin(options?: { strategy?: 'base' | 'class' }): Function +declare function plugin(options?: Partial<{ strategy: 'base' | 'class' }>): { handler: () => void } + +declare namespace plugin { + const __isOptionsFunction: true +} + export = plugin From 53f4e5be645bd79494ebfbf5b8b0ea7ccb70cb63 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Fri, 2 Sep 2022 12:35:04 +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 066618b..e0229f8 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 ([#126](https://github.com/tailwindlabs/tailwindcss-forms/pull/126)) ## [0.5.2] - 2022-05-18