Skip to content

Commit

Permalink
fix keyword usage
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 12, 2024
1 parent af1c912 commit bf281e4
Show file tree
Hide file tree
Showing 28 changed files with 29 additions and 57 deletions.
3 changes: 1 addition & 2 deletions packages/authentication/src/repositories/auth-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export class AuthProviderRepository extends DALUtils.mikroOrmBaseRepositoryFacto
create: RepositoryTypes.CreateAuthProviderDTO
}
>(AuthProvider) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/authentication/src/repositories/auth-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { SqlEntityManager } from "@mikro-orm/postgresql"
export class AuthUserRepository extends DALUtils.mikroOrmBaseRepositoryFactory(
AuthUser
) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/cart/src/repositories/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class AddressRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
create: CreateAddressDTO
}
>(Address) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/cart/src/repositories/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class CartRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
create: CreateCartDTO
}
>(Cart) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class CurrencyRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
update: RepositoryTypes.UpdateCurrencyDTO
}
>(Currency) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/money-amount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class MoneyAmountRepository extends DALUtils.mikroOrmBaseRepositoryFactor
update: RepositoryTypes.UpdateMoneyAmountDTO
}
>(MoneyAmount) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/price-list-rule-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class PriceListRuleValueRepository extends DALUtils.mikroOrmBaseRepositor
update: RepositoryTypes.UpdatePriceListRuleValueDTO
}
>(PriceListRuleValue) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/price-list-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { RepositoryTypes } from "@types"
export class PriceListRuleRepository extends DALUtils.mikroOrmBaseRepositoryFactory(
PriceListRule
) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/price-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { RepositoryTypes } from "@types"
export class PriceListRepository extends DALUtils.mikroOrmBaseRepositoryFactory(
PriceList
) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/price-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class PriceRuleRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
update: RepositoryTypes.UpdatePriceRuleDTO
}
>(PriceRule) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class PriceSetMoneyAmountRulesRepository extends DALUtils.mikroOrmBaseRep
update: RepositoryTypes.UpdatePriceSetMoneyAmountRulesDTO
}
>(PriceSetMoneyAmountRules) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/price-set-money-amount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class PriceSetMoneyAmountRepository extends DALUtils.mikroOrmBaseReposito
update: RepositoryTypes.UpdatePriceSetMoneyAmountDTO
}
>(PriceSetMoneyAmount) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/price-set-rule-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class PriceSetRuleTypeRepository extends DALUtils.mikroOrmBaseRepositoryF
update: RepositoryTypes.UpdatePriceSetRuleTypeDTO
}
>(PriceSetRuleType) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/price-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class PriceSetRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
update: RepositoryTypes.UpdatePriceSetDTO
}
>(PriceSet) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/pricing/src/repositories/rule-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class RuleTypeRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
update: RepositoryTypes.UpdateRuleTypeDTO
}
>(RuleType) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/product/src/repositories/product-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ type CreateProductCollection = ProductTypes.CreateProductCollectionDTO & {
export class ProductCollectionRepository extends DALUtils.mikroOrmBaseRepositoryFactory(
ProductCollection
) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/product/src/repositories/product-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { DALUtils } from "@medusajs/utils"
export class ProductImageRepository extends DALUtils.mikroOrmBaseRepositoryFactory(
Image
) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/product/src/repositories/product-option-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { SqlEntityManager } from "@mikro-orm/postgresql"
export class ProductOptionValueRepository extends DALUtils.mikroOrmBaseRepositoryFactory(
ProductOptionValue
) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/product/src/repositories/product-option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class ProductOptionRepository extends DALUtils.mikroOrmBaseRepositoryFact
update: ProductTypes.UpdateProductOptionDTO
}
>(ProductOption) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/product/src/repositories/product-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export class ProductTagRepository extends DALUtils.mikroOrmBaseRepositoryFactory
update: UpdateProductTagDTO
}
>(ProductTag) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/product/src/repositories/product-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export class ProductTypeRepository extends DALUtils.mikroOrmBaseRepositoryFactor
update: UpdateProductTypeDTO
}
>(ProductType) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/product/src/repositories/product-variant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export class ProductVariantRepository extends DALUtils.mikroOrmBaseRepositoryFac
>
}
>(ProductVariant) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/product/src/repositories/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export class ProductRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
create: WithRequiredProperty<ProductTypes.CreateProductOnlyDTO, "status">
}
>(Product) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/promotion/src/repositories/application-method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class ApplicationMethodRepository extends DALUtils.mikroOrmBaseRepository
update: UpdateApplicationMethodDTO
}
>(ApplicationMethod) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/promotion/src/repositories/promotion-rule-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export class PromotionRuleValueRepository extends DALUtils.mikroOrmBaseRepositor
update: UpdatePromotionRuleValueDTO
}
>(PromotionRuleValue) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/promotion/src/repositories/promotion-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class PromotionRuleRepository extends DALUtils.mikroOrmBaseRepositoryFact
update: UpdatePromotionRuleDTO
}
>(PromotionRule) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/promotion/src/repositories/promotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class PromotionRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
Update: UpdatePromotionDTO
}
>(Promotion) {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down
5 changes: 2 additions & 3 deletions packages/utils/src/dal/mikro-orm/mikro-orm-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ export class MikroOrmBase<T = any> {
export class MikroOrmBaseRepository<
T extends object = object
> extends MikroOrmBase<T> {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down Expand Up @@ -231,7 +230,7 @@ export function mikroOrmBaseRepositoryFactory<
>(entity: EntityClass<T> | EntitySchema<T>) {
class MikroOrmAbstractBaseRepository_ extends MikroOrmBaseRepository<T> {
// @ts-ignore
constructor(...arguments: any[]) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
Expand Down

0 comments on commit bf281e4

Please sign in to comment.