Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: translation strict null checks #472

Closed
wants to merge 3 commits into from

Conversation

abdou6666
Copy link
Member

Motivation

This PR make translation compliant with strictNullCheck
This PR should be merged after Settings PR #471

Fixes # (issue)

Type of change:

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added unit tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@abdou6666 abdou6666 requested a review from marrouchi December 20, 2024 14:58
@abdou6666 abdou6666 mentioned this pull request Dec 20, 2024
9 tasks
@abdou6666 abdou6666 changed the title Fix/translation strict null checks Fix: translation strict null checks Dec 20, 2024
@abdou6666 abdou6666 force-pushed the fix/translation-strictNullChecks branch from cb5442b to 5dcc1d8 Compare December 30, 2024 13:24
@@ -77,7 +77,7 @@ export interface NumberSetting extends Setting {
type: SettingType.number;
value: number;
options: never;
config?: {
config: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
config: {
config?: {

@@ -83,7 +83,7 @@ export async function seedDatabase(app: INestApplicationContext) {
...managerModels.map((model) => [model.id, managerRole.id]),
] as [string, string][];

const permissionSeeds = roleModelsCombinations.reduce(
const permissionSeeds = roleModelsCombinations.reduce<PermissionCreateDto[]>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const permissionSeeds = roleModelsCombinations.reduce<PermissionCreateDto[]>(
const permissionSeeds = roleModelsCombinations.reduce(

@marrouchi marrouchi closed this Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants