Type alias EntityRawSchemaByType<E, T>

EntityRawSchemaByType<E, T>: E[number] extends infer ESchema
    ? ESchema extends {
            type: T;
        }
        ? ESchema
        : never
    : never

Type representing the entity's raw schema matching this type. This type only works for EntityRawSchemaArray with literals as "type" property.

Type Parameters

Generated using TypeDoc