Skip to content

Commit

Permalink
[nextra/docs]: add @types/github-slugger instead of manually declar…
Browse files Browse the repository at this point in the history
…ing type (#647)
  • Loading branch information
dimaMachina committed Aug 7, 2022
1 parent 43409ad commit 4825365
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .changeset/forty-kings-search.md
@@ -0,0 +1,6 @@
---
'nextra': patch
'nextra-theme-docs': patch
---

add `@types/github-slugger` instead of manually declaring type
1 change: 1 addition & 0 deletions packages/nextra-theme-docs/package.json
Expand Up @@ -90,6 +90,7 @@
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
"@tailwindcss/typography": "^0.5.4",
"@types/flexsearch": "^0.7.3",
"@types/github-slugger": "^1.3.0",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"autoprefixer": "^10.4.8",
Expand Down
6 changes: 0 additions & 6 deletions packages/nextra-theme-docs/src/env.d.ts
@@ -1,9 +1,3 @@
declare module 'github-slugger' {
export default class Slugger {
slug(data: string): string
}
}

declare module 'match-sorter'

declare module 'title' {
Expand Down
1 change: 1 addition & 0 deletions packages/nextra/package.json
Expand Up @@ -97,6 +97,7 @@
"arrowParens": "avoid"
},
"devDependencies": {
"@types/github-slugger": "^1.3.0",
"@types/graceful-fs": "^4.1.5",
"@types/mdast": "^3.0.10",
"@types/react": "^18.0.15",
Expand Down
6 changes: 0 additions & 6 deletions packages/nextra/src/env.d.ts
@@ -1,9 +1,3 @@
declare module 'github-slugger' {
export default class Slugger {
slug(data: string): string
}
}

declare module globalThis {
import { PageMapItem } from './types'
var __nextra_internal__: {
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4825365

Please sign in to comment.