The current without implementation uses Omit for the entity type. However, Omit removes keys entirely from the output type, which makes it more difficult to check for components that might exist:
It would make much more sense not to alter the entity type at all, or to enforce optionality of the omitted component keys.
This might be useful when you add a component back within the query loop.
The type to be fixed: https://github.com/hmans/miniplex/blob/main/packages/core/src/core.ts#L14
The current
withoutimplementation uses Omit for the entity type. However,Omitremoves keys entirely from the output type, which makes it more difficult to check for components that might exist:It would make much more sense not to alter the entity type at all, or to enforce optionality of the omitted component keys.
This might be useful when you add a component back within the query loop.
The type to be fixed: https://github.com/hmans/miniplex/blob/main/packages/core/src/core.ts#L14