Skip to content

Commit

Permalink
Use @types/ysdk for ysdk typings
Browse files Browse the repository at this point in the history
  • Loading branch information
koteelok committed Sep 28, 2024
1 parent 8f15eb7 commit 80764de
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 295 deletions.
292 changes: 0 additions & 292 deletions @types/ysdk.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const package = require("../package.json");

const config = {
folders: ["@cc", "@types", "dist", "docs", "i18n", "static"],
modules: ["@babel", "i18next", "regenerator-runtime"],
modules: ["@babel", "i18next", "regenerator-runtime", "@types/ysdk"],
files: [
"AUTHORS",
"CHANGELOG.md",
Expand Down
4 changes: 2 additions & 2 deletions static/assets/ysdk.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { YandexGames } from "ysdk";
import type { SDK } from "ysdk";
import { game, cclegacy } from "cc";
import { EDITOR } from "cc/env";
import { L10NManager } from "./core/l10n";

export let ysdk = {} as YandexGames.SDK;
export let ysdk = {} as SDK;

export const l10n = L10NManager.instance;

Expand Down
1 change: 1 addition & 0 deletions static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"@types/ysdk": "^1.0.5",
"i18next": "^22.4.15"
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.4.tgz#e884a59338da907bda8d2ed03e01c5c49d036f1c"
integrity sha512-zAuJWQflfx6dYJM62vna+Sn5aeSWhh3OB+wfUEACNcqUSc0AGc5JKl+ycL1vrH7frGTXhJchYjE1Hak8L819dA==

"@types/ysdk@^1.0.5":
version "1.0.5"
resolved "https://npm.lisgames.ru/@types/ysdk/-/ysdk-1.0.5.tgz#cd13fe66e96663dd0c30bbeb61d3513bdfbd99ff"
integrity sha512-zQgSxm4bXaT0LzNtB/goDRgBZbjVse0BYXFJOqvw8fgIxfbTP/sL1eJrgTF7t0QgMn/obgMwANnk/csZVchwpw==

"@vue/babel-helper-vue-transform-on@^1.1.5":
version "1.1.5"
resolved "https://registry.yarnpkg.com/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.1.5.tgz#a976486b21e108e545524fe41ffe3fc9bbc28c7f"
Expand Down

0 comments on commit 80764de

Please sign in to comment.