Skip to content

Commit

Permalink
Strict Properties (#28)
Browse files Browse the repository at this point in the history
* Change emitted base type to object

* Add changelog entry
  • Loading branch information
daogrady authored Jul 20, 2023
1 parent 805acb0 commit ce0d28a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

## Version 0.4.1 - TBD

### Changed
- Facilitate strict property checks. Note: `checkJs: true` must be present in the project's _jsconfig.json_ or _tsconfig.json_ respectively for this feature to become effective

### Added
- Support for `array of` syntax

Expand Down
2 changes: 1 addition & 1 deletion lib/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class Visitor {
})

// CLASS ASPECT
buffer.add(`export function ${identAspect(clean)}<TBase extends new (...args: any[]) => any>(Base: TBase) {`)
buffer.add(`export function ${identAspect(clean)}<TBase extends new (...args: any[]) => object>(Base: TBase) {`)
buffer.indent()
buffer.add(`return class ${clean} extends Base {`)
buffer.indent()
Expand Down

0 comments on commit ce0d28a

Please sign in to comment.