solid-client icon indicating copy to clipboard operation
solid-client copied to clipboard

unregisterType() should remove particular registration

Open elf-pavlik opened this issue 9 years ago • 0 comments

https://github.com/solid/solid-client#registering-and-un-registering-types-in-the-type-registry

profile.typeRegistryForClass() returns an array of registrations, profile.unregisterType() should accept reference to one of those registrations and just remove that particular one.

Renaming it to removeTypeRegistration() may make it more clear, also each type registration could have simply delete() method.

elf-pavlik avatar Oct 19 '16 18:10 elf-pavlik