Skip to content

Resource object name/class inconsistency  #94

Closed
@kenjiqq

Description

@kenjiqq

When you create a definition for a resource that provides the method object the created instances of this resource will be of a class with the same name as the name attribute in that resources definition instance.constructor.name === resourceDefinition.name.

But resources defined without the methods object will be of the class Object.
I feel this should be consistent across all instances of resources, and that they should all be of a class by the same name as the resource.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions