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
refactor(core): enhance class implementations and documentation (#162)
* refactor(core): update class implementations to implement options interfaces
- Updated .oxlintrc.json to enable @typescript-eslint/no-unsafe-declaration-merging rule
- Updated Api, Field, Operation, and Resource classes to implement their respective options interfaces.
- Declare all the fields in the classes instead of relying on interface declaration merging
- Update openapi3 test to take new fields order
Signed-off-by: J3m5 <[email protected]>
* refactor(core): replace assignSealed with Object.assign
- Removed assignSealed utility function.
- Updated constructors in Api, Field, Operation, and Resource classes to use Object.assign for property assignment.
Signed-off-by: J3m5 <[email protected]>
* refactor(docs): improve JSDoc comments following oxlint jsdoc plugin
- Edit .oxlintrc.json to enable jsdoc plugin
- Added parameter and return type annotations in buildEnumObject, getType, fetchJsonLd, parseHydraDocumentation, and handleJson functions.
Signed-off-by: J3m5 <[email protected]>
* refactor(core): export types from types.js in core index file
Signed-off-by: J3m5 <[email protected]>
* refactor(package.json): add exports for core module types and implementation
Signed-off-by: J3m5 <[email protected]>
* refactor(package.json): update lint:fix command and runtime version format
- Changed lint:fix command to include --fix-suggestions
- Updated runtime version format to include a space
Signed-off-by: J3m5 <[email protected]>
* refactor(oxlintrc): remove unused ESLint and Unicorn rules
Signed-off-by: J3m5 <[email protected]>
---------
Signed-off-by: J3m5 <[email protected]>
0 commit comments