Skip to content

Commit 0c2bd91

Browse files
committed
types updates
1 parent 6e4eff8 commit 0c2bd91

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

example/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"dependencies": {
1212
"@stitches/react": "^1.2.8",
1313
"@u-wave/react-youtube": "file:..",
14-
"@vitejs/plugin-react": "^3.0.0",
15-
"react": "^18.0.0",
16-
"react-dom": "^18.0.0",
17-
"vite": "^4.0.1"
14+
"@vitejs/plugin-react": "^4.0.0",
15+
"react": "^19.0.0",
16+
"react-dom": "^19.0.0",
17+
"vite": "^6.0.1"
1818
}
1919
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
},
99
"dependencies": {
1010
"@types/prop-types": "^15.7.5",
11-
"@types/react": "^17.0.0 || ^18.0.0",
12-
"@types/youtube": "0.0.47",
13-
"prop-types": "^15.7.2"
11+
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
12+
"@types/youtube": "^0.1.0",
13+
"prop-types": "^15.8.1"
1414
},
1515
"devDependencies": {
1616
"@types/node": "^18.11.14",
17+
"@types/react-dom": "^19.0.2",
1718
"@typescript-eslint/eslint-plugin": "^5.46.1",
1819
"@typescript-eslint/parser": "^5.46.1",
1920
"@u-wave/react-youtube-example": "file:example",

src/loadSdk.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
/// <reference lib="youtube" />
1+
declare global {
2+
namespace YT {
3+
function ready(callback: (value: typeof YT) => void): void;
4+
}
5+
}
26

37
function loadSdk() {
48
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)