Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 committed Jan 30, 2025
1 parent c8d4838 commit 0ffe4d9
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion storage/framework/core/orm/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ export async function generateModelString(
const model = await query.execute()
return model.map(modelItem => instance.parseResult(new ${modelName}Model(modelItem)))
return model.map((modelItem: ${modelName}Model) => instance.parseResult(new ${modelName}Model(modelItem)))
}
skip(count: number): ${modelName}Model {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/AccessToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class AccessTokenModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new AccessTokenModel(modelItem)))
return model.map((modelItem: AccessTokenModel) => instance.parseResult(new AccessTokenModel(modelItem)))
}

skip(count: number): AccessTokenModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class DeploymentModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new DeploymentModel(modelItem)))
return model.map((modelItem: DeploymentModel) => instance.parseResult(new DeploymentModel(modelItem)))
}

skip(count: number): DeploymentModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class ErrorModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new ErrorModel(modelItem)))
return model.map((modelItem: ErrorModel) => instance.parseResult(new ErrorModel(modelItem)))
}

skip(count: number): ErrorModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/FailedJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class FailedJobModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new FailedJobModel(modelItem)))
return model.map((modelItem: FailedJobModel) => instance.parseResult(new FailedJobModel(modelItem)))
}

skip(count: number): FailedJobModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class JobModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new JobModel(modelItem)))
return model.map((modelItem: JobModel) => instance.parseResult(new JobModel(modelItem)))
}

skip(count: number): JobModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/PaymentMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class PaymentMethodModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new PaymentMethodModel(modelItem)))
return model.map((modelItem: PaymentMethodModel) => instance.parseResult(new PaymentMethodModel(modelItem)))
}

skip(count: number): PaymentMethodModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class PostModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new PostModel(modelItem)))
return model.map((modelItem: PostModel) => instance.parseResult(new PostModel(modelItem)))
}

skip(count: number): PostModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class ProductModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new ProductModel(modelItem)))
return model.map((modelItem: ProductModel) => instance.parseResult(new ProductModel(modelItem)))
}

skip(count: number): ProductModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class ProjectModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new ProjectModel(modelItem)))
return model.map((modelItem: ProjectModel) => instance.parseResult(new ProjectModel(modelItem)))
}

skip(count: number): ProjectModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class ReleaseModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new ReleaseModel(modelItem)))
return model.map((modelItem: ReleaseModel) => instance.parseResult(new ReleaseModel(modelItem)))
}

skip(count: number): ReleaseModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class SubscriberModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new SubscriberModel(modelItem)))
return model.map((modelItem: SubscriberModel) => instance.parseResult(new SubscriberModel(modelItem)))
}

skip(count: number): SubscriberModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/SubscriberEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class SubscriberEmailModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new SubscriberEmailModel(modelItem)))
return model.map((modelItem: SubscriberEmailModel) => instance.parseResult(new SubscriberEmailModel(modelItem)))
}

skip(count: number): SubscriberEmailModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class SubscriptionModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new SubscriptionModel(modelItem)))
return model.map((modelItem: SubscriptionModel) => instance.parseResult(new SubscriptionModel(modelItem)))
}

skip(count: number): SubscriptionModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class TeamModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new TeamModel(modelItem)))
return model.map((modelItem: TeamModel) => instance.parseResult(new TeamModel(modelItem)))
}

skip(count: number): TeamModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export class TransactionModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new TransactionModel(modelItem)))
return model.map((modelItem: TransactionModel) => instance.parseResult(new TransactionModel(modelItem)))
}

skip(count: number): TransactionModel {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class UserModel {

const model = await query.execute()

return model.map(modelItem => instance.parseResult(new UserModel(modelItem)))
return model.map((modelItem: UserModel) => instance.parseResult(new UserModel(modelItem)))
}

skip(count: number): UserModel {
Expand Down

0 comments on commit 0ffe4d9

Please sign in to comment.