diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..e6f1c05 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,6 @@ +import type { NextConfig } from "next"; + +declare module "next-with-less" { + function NextWithLess(config: NextConfig): NextConfig; + export default NextWithLess; +} diff --git a/package.json b/package.json index 0f03e97..40683cb 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "3.0.1", "description": "Next.js + Less CSS Support", "main": "index.js", + "types": "index.d.ts", "repository": "https://github.com/elado/next-with-less.git", "homepage": "https://github.com/elado/next-with-less#readme", "author": "Elad Ossadon ", @@ -30,6 +31,7 @@ }, "files": [ "/index.js", + "/index.d.ts", "/dist" ], "packageManager": "yarn@3.5.0"