Skip to content

Commit

Permalink
types updates
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Dec 26, 2024
1 parent 6e4eff8 commit 0c2bd91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"dependencies": {
"@stitches/react": "^1.2.8",
"@u-wave/react-youtube": "file:..",
"@vitejs/plugin-react": "^3.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"vite": "^4.0.1"
"@vitejs/plugin-react": "^4.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"vite": "^6.0.1"
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
},
"dependencies": {
"@types/prop-types": "^15.7.5",
"@types/react": "^17.0.0 || ^18.0.0",
"@types/youtube": "0.0.47",
"prop-types": "^15.7.2"
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"@types/youtube": "^0.1.0",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@types/node": "^18.11.14",
"@types/react-dom": "^19.0.2",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@u-wave/react-youtube-example": "file:example",
Expand Down
6 changes: 5 additions & 1 deletion src/loadSdk.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/// <reference lib="youtube" />
declare global {
namespace YT {
function ready(callback: (value: typeof YT) => void): void;
}
}

function loadSdk() {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 0c2bd91

Please sign in to comment.