@playcanvas/attribute-parser 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/utils/ts-utils.js
CHANGED
|
@@ -86,7 +86,7 @@ export function isAliasedClassDeclaration(node, typeChecker) {
|
|
|
86
86
|
return true;
|
|
87
87
|
}
|
|
88
88
|
// Try to resolve the original declaration
|
|
89
|
-
if (ts.isIdentifier(node.name)) {
|
|
89
|
+
if (node?.name && ts.isIdentifier(node.name)) {
|
|
90
90
|
const symbol = typeChecker.getSymbolAtLocation(node.name);
|
|
91
91
|
if (symbol) {
|
|
92
92
|
const resolvedSymbol = resolveAliasedSymbol(typeChecker, symbol);
|
|
@@ -2,6 +2,9 @@ import * as TWEEN from 'https://cdnjs.cloudflare.com/ajax/libs/tween.js/23.1.2/t
|
|
|
2
2
|
import confetti from 'https://esm.sh/canvas-confetti@1.6.0';
|
|
3
3
|
import { Script } from 'playcanvas';
|
|
4
4
|
|
|
5
|
+
/** @enum {number} */
|
|
6
|
+
export const MyEnum = { value: 0 };
|
|
7
|
+
|
|
5
8
|
class Example extends Script {
|
|
6
9
|
/**
|
|
7
10
|
* @attribute
|