Skip to content

Commit

Permalink
Add typedef for next-bundle-analyzer (#35075)
Browse files Browse the repository at this point in the history
* Add typedef for next-bundle-analyzer

* Update package.json

* update type

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
stefee and ijjk authored May 22, 2022
1 parent f467bf2 commit 90ada64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ test-timings.json
packages/next-swc/crates/**
bench/nested-deps/pages/**
bench/nested-deps/components/**
packages/next-bundle-analyzer/index.d.ts
7 changes: 7 additions & 0 deletions packages/next-bundle-analyzer/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from 'next'

const NextBundleAnalyzer =
(options?: { enabled?: boolean }) => (config?: NextConfig) =>
NextConfig

export = NextBundleAnalyzer
1 change: 1 addition & 0 deletions packages/next-bundle-analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@next/bundle-analyzer",
"version": "12.1.7-canary.10",
"main": "index.js",
"types": "index.d.ts",
"license": "MIT",
"repository": {
"url": "vercel/next.js",
Expand Down

0 comments on commit 90ada64

Please sign in to comment.