Skip to content

Commit

Permalink
fixed example types (#6635)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd authored May 28, 2024
1 parent c90fe92 commit 5d34f42
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions examples/iframe/observer.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Observer } from './playcanvas-observer.mjs';

/**
* @type {Observer}
*/
let data;
function refresh() {
data = new Observer({});
Expand Down
2 changes: 1 addition & 1 deletion examples/iframe/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const blobUrls = [];
* Imports a local file as a module.
*
* @param {string} name - The name of the local file.
* @returns {Promise<Object>} - The module exports.
* @returns {Promise<any>} - The module exports.
*/
export function localImport(name) {
if (!/\.mjs$/.test(name)) {
Expand Down
6 changes: 3 additions & 3 deletions examples/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"allowSyntheticDefaultImports" : true,
"checkJs": true,
"esModuleInterop" : true,
"module": "node16",
"moduleResolution": "node16",
"module": "Node16",
"moduleResolution": "Node16",
"noImplicitAny": true,
"outDir": "dist",
"strictNullChecks": true,
"target": "es6",
"target": "ESNext",
},
"include": ["src", "scripts", "iframe", "utils"],
"exclude": ["node_modules", "src/lib"]
Expand Down
8 changes: 4 additions & 4 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"lib"
],
"devDependencies": {
"examples": "file:../iframe",
"@babel/standalone": "^7.22.9",
"@monaco-editor/react": "^4.5.1",
"@playcanvas/eslint-config": "^1.5.0",
Expand All @@ -54,6 +53,7 @@
"concurrently": "^7.6.0",
"cross-env": "^7.0.2",
"eslint": "^8.46.0",
"examples": "file:./iframe",
"fflate": "^0.8.0",
"fs-extra": "^10.1.0",
"monaco-editor": "^0.33.0",
Expand Down

0 comments on commit 5d34f42

Please sign in to comment.