8000 Support static methods and object invariants? · Issue #195 · final-hill/decorator-contracts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Support static methods and object invariants? #195
Open
@mlhaufe

Description

@mlhaufe
67DE
class Point2 {
  static create(x,y) {
    return new Point2(x,y)
  }
  constructor(
    readonly x: number, 
    readonly y: number
  ) {  }
...
}

const pointFactory = {
  Point2(x,y) { return new Point2(x,y) },
...
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0