arrow_backRetour aux issues
a-gondolkodas-orome/durer-aion
#191
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
Add typing to ModellAttributes in sequelize
ecoDébutant
good first issue
descriptionDescription
Goal: Make typings script, i.e. if an attribute is missing, or added, then it would raise a type error.
In `deletedTeams.ts`, e.g. do the following:
```ts
export class DeletedTeamModel extends TeamModel {
public deletedAt!: Date;
}
const teamAttributesWithNoUnique = Object.fromEntries(
Object.entries(teamAttributes).map(([key, value]) => [
key,
typeof value === "object" && value !== null
? { ...value, unique: false }
: value,
])
) as ModelAttributes;
export const deletedTeamAttributes: ModelAttributes = {
...teamAttributesWithNoUnique,
deletedAt: {
type: DataTypes.DATE,
allowNull: false,
},
deletedId: {
type: DataTypes.INTEGER,
autoIncrement: true,
primaryKey: true,
},
};
```
Issues similaires
lingdojo/kana-dojo
star3.2k
Poids du dépôt lourd
[Good First Issue] 🐡 Add new Japan Fact 251 - Beginner-Friendly Open-source Contribution
## 🟢 Good First Issue: Add Japan Fact #251 — Beginner-Friendly Open Source Contribution ![Time: <1 minute](https://img…
TypeScript
enhancement
help wanted
WasiqB/multiple-cucumber-html-reporter
star281
Poids du dépôt moyen
Error bucketing
It would be great to bucket the errors in different types i.e. Code exception, configuration exception, environmental e…
TypeScript
enhancement
help wanted
StellarLock/StellarLock
star0
Poids du dépôt léger
LP lock links omit the /token|lp/ URL segment, causing wrong-type lookups on the detail page
## Summary Lock detail links should include the lock's kind in the URL, e.g. `/app/lock/lp/:id` or `/app/lock/token/:i…
TypeScript
bug
good first issue