medikoo / dbjs

In-Memory Database Engine for JavaScript
MIT License
28 stars 4 forks source link

Introduce type.ensureExtension(type) method #72

Open medikoo opened 8 years ago

medikoo commented 8 years ago

Probably name should be different. It's about method that will validate whether provided type is same as context type or is its extension.

It should come in pair with isExtension method (that would be used internally by ensureExtension