@playcanvas/attribute-parser 1.0.6 → 1.0.7
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 +1 -1
- package/src/index.js +1 -3
- package/src/utils/ts-utils.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { createSystem, createDefaultMapFromNodeModules, createVirtualTypeScriptE
|
|
|
2
2
|
import * as ts from 'typescript';
|
|
3
3
|
|
|
4
4
|
import { ScriptParser } from './parsers/script-parser.js';
|
|
5
|
+
import { isInterface } from './utils/attribute-utils.js';
|
|
5
6
|
import { createDefaultMapFromCDN, flatMapAnyNodes, getExportedNodes, getType, inheritsFrom, isAliasedClassDeclaration } from './utils/ts-utils.js';
|
|
6
7
|
|
|
7
8
|
const toLowerCamelCase = str => str[0].toLowerCase() + str.substring(1);
|
|
@@ -180,9 +181,6 @@ export class JSDocParser {
|
|
|
180
181
|
throw new Error(`Source file ${fileName} not found`);
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
// Filter out classes that do not inherit from `Script` or are interfaces
|
|
184
|
-
const isInterface = node => node.jsDoc.some(jsdoc => jsdoc.tags?.some(tag => tag.tagName.getText() === 'interface'));
|
|
185
|
-
|
|
186
184
|
const nodes = flatMapAnyNodes(sourceFile, (node) => {
|
|
187
185
|
if (!ts.isClassDeclaration(node)) {
|
|
188
186
|
return false;
|
package/src/utils/ts-utils.js
CHANGED
|
@@ -379,7 +379,7 @@ export function parseNumber(input) {
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
|
-
* Parses a string
|
|
382
|
+
* Parses a string representation of a numerical array into an array of numbers.
|
|
383
383
|
*
|
|
384
384
|
* @param {string} input - The string to parse
|
|
385
385
|
* @returns {number[]} - The parsed array of numbers
|