From ff1f48cb661ca53cd78245df3b687e861cb32369 Mon Sep 17 00:00:00 2001 From: Adam Skoufis Date: Tue, 12 Nov 2024 09:53:07 +1100 Subject: [PATCH] Add types --- .changeset/pretty-files-compete.md | 5 +++++ index.d.ts | 2 ++ package.json | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/pretty-files-compete.md create mode 100644 index.d.ts diff --git a/.changeset/pretty-files-compete.md b/.changeset/pretty-files-compete.md new file mode 100644 index 0000000..8b4c88f --- /dev/null +++ b/.changeset/pretty-files-compete.md @@ -0,0 +1,5 @@ +--- +"browserslist-config-seek": minor +--- + +Add type definition for default export diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..de6d0ad --- /dev/null +++ b/index.d.ts @@ -0,0 +1,2 @@ +declare const browserslistConfigSeek: readonly string[]; +export default browserslistConfigSeek; diff --git a/package.json b/package.json index 00a4be5..c64eceb 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "3.1.0", "description": "Shareable Browserslist config for SEEK", "main": "index.js", + "types": "index.d.ts", "scripts": { "test": "node test.js", "format": "pnpm run '/format:.*/'", @@ -15,7 +16,8 @@ "version": "changeset version" }, "files": [ - "index.js" + "index.js", + "index.d.ts" ], "repository": { "type": "git",