From cc68cd54dab7a5e503338232664ee242507599f2 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Thu, 1 Sep 2022 13:47:10 -0400 Subject: [PATCH 1/2] Add typescript types --- package.json | 1 + src/index.d.ts | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 src/index.d.ts diff --git a/package.json b/package.json index fef5c60..f56c180 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "@tailwindcss/line-clamp", "version": "0.4.0", "main": "src/index.js", + "types": "src/index.d.ts", "license": "MIT", "repository": "https://github.com/tailwindlabs/tailwindcss-line-clamp", "publishConfig": { diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..1f93420 --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,2 @@ +declare function plugin(): Function +export = plugin From 958fa1107f0baaaa644e2cafcd4e559a307d4353 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Thu, 1 Sep 2022 13:51:24 -0400 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 018ee20..43d80b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Added + +- Add typescript types ([#22](https://github.com/tailwindlabs/tailwindcss-line-clamp/pull/22)) + ## [0.4.0] - 2022-04-27 This release of `@tailwindcss/line-clamp` is designed for Tailwind CSS v3.0+, and is not compatible with earlier versions.