You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: enhance enum handling and add playcanvas dependency
- Updated the attribute parser to correctly handle TypeScript enums, including imported constants.
- Enhanced the getLiteralValue function to prioritize type checking for imported constants.
- Added support for enums in the test fixtures, validating the integration with playcanvas.
- Introduced playcanvas as a dependency in package.json and package-lock.json.
This update improves the parsing of enums and ensures compatibility with the latest playcanvas features.
* refactor: update enum handling and improve type resolution
- Replaced the fallback in `resolveIdentifier` to return `undefined` instead of a literal value.
- Refactored enum definitions in test fixtures to utilize new tone mapping constants from playcanvas.
- Updated tests to validate the new enum structure and ensure correct default values for tone mapping attributes.
This change enhances the clarity and functionality of enum handling in the codebase.
* feat: add Playcanvas types loading and remove fixture file
- Introduced a new function `getPlaycanvasTypes` to load Playcanvas type definitions directly from `node_modules`.
- Updated `parseAttributes` and `getAttributes` functions to utilize the loaded Playcanvas types instead of relying on a local fixture file.
- Removed the `playcanvas.d.ts` fixture file as it is no longer needed.
This change streamlines type handling and ensures that the latest Playcanvas definitions are used in the project.
0 commit comments