Skip to content

Commit

Permalink
Add TypeScript typings
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Aug 30, 2023
1 parent 1909bea commit b5fe342
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 4 deletions.
1 change: 1 addition & 0 deletions sample/vite3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"react-pdf": "latest"
},
"devDependencies": {
"@types/babel__core": "^7.20.0",
"@vitejs/plugin-react": "^2.2.0",
"typescript": "^5.0.0",
"vite": "^3.0.0",
Expand Down
46 changes: 44 additions & 2 deletions sample/vite3/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/parser@npm:^7.20.7, @babel/parser@npm:^7.21.3":
"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.21.3":
version: 7.21.3
resolution: "@babel/parser@npm:7.21.3"
bin:
Expand Down Expand Up @@ -306,7 +306,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/types@npm:^7.18.6, @babel/types@npm:^7.20.2, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.2, @babel/types@npm:^7.21.3, @babel/types@npm:^7.8.3":
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.6, @babel/types@npm:^7.20.2, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.2, @babel/types@npm:^7.21.3, @babel/types@npm:^7.8.3":
version: 7.21.3
resolution: "@babel/types@npm:7.21.3"
dependencies:
Expand Down Expand Up @@ -463,6 +463,47 @@ __metadata:
languageName: node
linkType: hard

"@types/babel__core@npm:^7.20.0":
version: 7.20.0
resolution: "@types/babel__core@npm:7.20.0"
dependencies:
"@babel/parser": ^7.20.7
"@babel/types": ^7.20.7
"@types/babel__generator": "*"
"@types/babel__template": "*"
"@types/babel__traverse": "*"
checksum: 49b601a0a7637f1f387442c8156bd086cfd10ff4b82b0e1994e73a6396643b5435366fb33d6b604eade8467cca594ef97adcbc412aede90bb112ebe88d0ad6df
languageName: node
linkType: hard

"@types/babel__generator@npm:*":
version: 7.6.4
resolution: "@types/babel__generator@npm:7.6.4"
dependencies:
"@babel/types": ^7.0.0
checksum: 20effbbb5f8a3a0211e95959d06ae70c097fb6191011b73b38fe86deebefad8e09ee014605e0fd3cdaedc73d158be555866810e9166e1f09e4cfd880b874dcb0
languageName: node
linkType: hard

"@types/babel__template@npm:*":
version: 7.4.1
resolution: "@types/babel__template@npm:7.4.1"
dependencies:
"@babel/parser": ^7.1.0
"@babel/types": ^7.0.0
checksum: 649fe8b42c2876be1fd28c6ed9b276f78152d5904ec290b6c861d9ef324206e0a5c242e8305c421ac52ecf6358fa7e32ab7a692f55370484825c1df29b1596ee
languageName: node
linkType: hard

"@types/babel__traverse@npm:*":
version: 7.20.1
resolution: "@types/babel__traverse@npm:7.20.1"
dependencies:
"@babel/types": ^7.20.7
checksum: 58341e23c649c0eba134a1682d4f20d027fad290d92e5740faa1279978f6ed476fc467ae51ce17a877e2566d805aeac64eae541168994367761ec883a4150221
languageName: node
linkType: hard

"@types/prop-types@npm:*":
version: 15.7.5
resolution: "@types/prop-types@npm:15.7.5"
Expand Down Expand Up @@ -2003,6 +2044,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "react-pdf-sample-page-vite3@workspace:."
dependencies:
"@types/babel__core": ^7.20.0
"@vitejs/plugin-react": ^2.2.0
react: ^18.2.0
react-dom: ^18.2.0
Expand Down
1 change: 1 addition & 0 deletions sample/vite4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"react-pdf": "latest"
},
"devDependencies": {
"@types/babel__core": "^7.20.0",
"@vitejs/plugin-react": "^3.0.0",
"vite": "^4.0.0",
"vite-plugin-static-copy": "^0.17.0"
Expand Down
46 changes: 44 additions & 2 deletions sample/vite4/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/parser@npm:^7.20.7, @babel/parser@npm:^7.21.3":
"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.21.3":
version: 7.21.3
resolution: "@babel/parser@npm:7.21.3"
bin:
Expand Down Expand Up @@ -260,7 +260,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/types@npm:^7.18.6, @babel/types@npm:^7.20.2, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.2, @babel/types@npm:^7.21.3, @babel/types@npm:^7.8.3":
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.6, @babel/types@npm:^7.20.2, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.2, @babel/types@npm:^7.21.3, @babel/types@npm:^7.8.3":
version: 7.21.3
resolution: "@babel/types@npm:7.21.3"
dependencies:
Expand Down Expand Up @@ -557,6 +557,47 @@ __metadata:
languageName: node
linkType: hard

"@types/babel__core@npm:^7.20.0":
version: 7.20.0
resolution: "@types/babel__core@npm:7.20.0"
dependencies:
"@babel/parser": ^7.20.7
"@babel/types": ^7.20.7
"@types/babel__generator": "*"
"@types/babel__template": "*"
"@types/babel__traverse": "*"
checksum: 49b601a0a7637f1f387442c8156bd086cfd10ff4b82b0e1994e73a6396643b5435366fb33d6b604eade8467cca594ef97adcbc412aede90bb112ebe88d0ad6df
languageName: node
linkType: hard

"@types/babel__generator@npm:*":
version: 7.6.4
resolution: "@types/babel__generator@npm:7.6.4"
dependencies:
"@babel/types": ^7.0.0
checksum: 20effbbb5f8a3a0211e95959d06ae70c097fb6191011b73b38fe86deebefad8e09ee014605e0fd3cdaedc73d158be555866810e9166e1f09e4cfd880b874dcb0
languageName: node
linkType: hard

"@types/babel__template@npm:*":
version: 7.4.1
resolution: "@types/babel__template@npm:7.4.1"
dependencies:
"@babel/parser": ^7.1.0
"@babel/types": ^7.0.0
checksum: 649fe8b42c2876be1fd28c6ed9b276f78152d5904ec290b6c861d9ef324206e0a5c242e8305c421ac52ecf6358fa7e32ab7a692f55370484825c1df29b1596ee
languageName: node
linkType: hard

"@types/babel__traverse@npm:*":
version: 7.20.1
resolution: "@types/babel__traverse@npm:7.20.1"
dependencies:
"@babel/types": ^7.20.7
checksum: 58341e23c649c0eba134a1682d4f20d027fad290d92e5740faa1279978f6ed476fc467ae51ce17a877e2566d805aeac64eae541168994367761ec883a4150221
languageName: node
linkType: hard

"@types/prop-types@npm:*":
version: 15.7.5
resolution: "@types/prop-types@npm:15.7.5"
Expand Down Expand Up @@ -1923,6 +1964,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "react-pdf-sample-page-vite4@workspace:."
dependencies:
"@types/babel__core": ^7.20.0
"@vitejs/plugin-react": ^3.0.0
react: ^18.2.0
react-dom: ^18.2.0
Expand Down

0 comments on commit b5fe342

Please sign in to comment.