Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mhoog committed Aug 26, 2024
1 parent 96bc1d1 commit 1cdcf57
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 30 deletions.
6 changes: 4 additions & 2 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test": "jest --coverage",
"test:watch": "jest --watch",
"test:ci": "jest --silent --ci",
"validate": "run-p validate:**",
"validate": "run-p 'validate:**'",
"validate:linting": "eslint 'src/**/*.{js,ts,tsx}' --quiet",
"validate:size": "yarn build:lib && size-limit",
"validate:types": "tsc --noEmit",
Expand Down Expand Up @@ -78,8 +78,10 @@
"@testing-library/user-event": "^12.8.1",
"@types/jest": "^26.0.20",
"@types/jest-axe": "^3.5.1",
"@types/mdast": "^3.0.0",
"@types/node": "20.6.0",
"@types/prop-types": "^15",
"@types/react": "17.0.2",
"@types/react": "17.0.80",
"@types/react-dom": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Code } from 'mdast'
import type { Code } from 'mdast'
import * as React from 'react'

import { styled } from '~/stitches'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Content, Emphasis } from 'mdast'
import type { Content, Emphasis } from 'mdast'
import * as React from 'react'

import { styled } from '~/stitches'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Content, Heading as HeadingType } from 'mdast'
import type { Content, Heading as HeadingType } from 'mdast'
import * as React from 'react'

import { Heading, HeadingProps } from '../../heading/Heading'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Image as ImageType } from 'mdast'
import type { Image as ImageType } from 'mdast'
import * as React from 'react'

import { CSS } from '~/stitches'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InlineCode } from 'mdast'
import type { InlineCode } from 'mdast'
import * as React from 'react'

import { styled } from '~/stitches'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Content, Link as LinkType } from 'mdast'
import type { Content, Link as LinkType } from 'mdast'
import * as React from 'react'

import { Link } from '../../link'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Content, List as ListType } from 'mdast'
import type { Content, List as ListType } from 'mdast'
import * as React from 'react'

import { CSS } from '~/stitches'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Content, ListItem } from 'mdast'
import type { Content, ListItem } from 'mdast'
import * as React from 'react'

import { List } from '../../list'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Content, Paragraph } from 'mdast'
import type { Content, Paragraph } from 'mdast'
import * as React from 'react'

import { Text } from '../../text'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Content, Strong } from 'mdast'
import type { Content, Strong } from 'mdast'
import * as React from 'react'

import { styled } from '~/stitches'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Text as TextType } from 'mdast'
import type { Text as TextType } from 'mdast'
import * as React from 'react'

type MarkdownTextProps = {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/navigation/NavigationMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const NavigationMenuComponent = ({
}, [React.Children.toArray(children).length])

React.useEffect(() => {
let timer: NodeJS.Timer
let timer: ReturnType<typeof setTimeout>

// Delay transitioning back to initial position
// to allow enough time for fadeOut animation to complete
Expand Down
31 changes: 15 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ __metadata:
"@testing-library/user-event": "npm:^12.8.1"
"@types/jest": "npm:^26.0.20"
"@types/jest-axe": "npm:^3.5.1"
"@types/mdast": "npm:^3.0.0"
"@types/node": "npm:20.6.0"
"@types/prop-types": "npm:^15"
"@types/react": "npm:17.0.2"
"@types/react": "npm:17.0.80"
"@types/react-dom": "npm:^17.0.11"
"@typescript-eslint/eslint-plugin": "npm:^4.29.1"
"@typescript-eslint/parser": "npm:^4.29.1"
Expand Down Expand Up @@ -5793,6 +5795,13 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:20.6.0":
version: 20.6.0
resolution: "@types/node@npm:20.6.0"
checksum: 10c0/0979a218f1862a80ddb7a8ba70498798a72e4861394244657c47bd64ed0c87baa4e0c8ce693bab23e58ec272913438b341de98768dc737491c58e6faff19d955
languageName: node
linkType: hard

"@types/normalize-package-data@npm:^2.4.0":
version: 2.4.1
resolution: "@types/normalize-package-data@npm:2.4.1"
Expand Down Expand Up @@ -5878,13 +5887,14 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:17.0.2":
version: 17.0.2
resolution: "@types/react@npm:17.0.2"
"@types/react@npm:17.0.80, @types/react@npm:^17":
version: 17.0.80
resolution: "@types/react@npm:17.0.80"
dependencies:
"@types/prop-types": "npm:*"
"@types/scheduler": "npm:^0.16"
csstype: "npm:^3.0.2"
checksum: 10c0/6b48673db526015c45a0dc036394cdc7d5fd48388b3f05f8f433e74c08fb4c80e5acfc66baa2c7cc8a091d0d8524bcb00397bc7c6286fcefad4bf4cef959d764
checksum: 10c0/c5d2862564212a41a327ea9c7e70b9d3996d9b0f67971d39519d42d1f3ae6ddf76b183457b7b0be9d7b5d6ff0aaeed5711448423406d20018f082077c984eec4
languageName: node
linkType: hard

Expand All @@ -5899,17 +5909,6 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:^17":
version: 17.0.80
resolution: "@types/react@npm:17.0.80"
dependencies:
"@types/prop-types": "npm:*"
"@types/scheduler": "npm:^0.16"
csstype: "npm:^3.0.2"
checksum: 10c0/c5d2862564212a41a327ea9c7e70b9d3996d9b0f67971d39519d42d1f3ae6ddf76b183457b7b0be9d7b5d6ff0aaeed5711448423406d20018f082077c984eec4
languageName: node
linkType: hard

"@types/resolve@npm:1.17.1":
version: 1.17.1
resolution: "@types/resolve@npm:1.17.1"
Expand Down

0 comments on commit 1cdcf57

Please sign in to comment.