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

chore: enable strictPropertyInitialization TypeScript option #492

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Feb 21, 2024

I recommend reviewing this with whitespace changes disabled.

This enables the strictPropertyInitialization TypeScript compiler option for improved type safety.

There were two places where we were violating this rule...no longer!

_I recommend reviewing this with whitespace changes disabled._

This enables the [strictPropertyInitialization] TypeScript compiler
option for improved type safety.

There were two places where we were violating this rule...no longer!

[strictPropertyInitialization]: https://www.typescriptlang.org/tsconfig/#strictPropertyInitialization
@EvanHahn EvanHahn changed the title chore: add strictPropertyInitialization compiler option chore: enable strictPropertyInitialization compiler option Feb 21, 2024
@EvanHahn EvanHahn changed the title chore: enable strictPropertyInitialization compiler option chore: enable strictPropertyInitialization TypeScript option Feb 21, 2024
this.#creatorCore = this.#addCore({ publicKey: projectKey }, 'auth').core
}
// For anyone other than the project creator, creatorCore is readonly
this.#creatorCore ??= this.#addCore({ publicKey: projectKey }, 'auth').core
Copy link
Member

Choose a reason for hiding this comment

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

i don't think i'll ever get used to this 😅

@EvanHahn EvanHahn merged commit 98b4da7 into main Feb 21, 2024
7 checks passed
@EvanHahn EvanHahn deleted the strictPropertyInitialization branch February 21, 2024 21:53
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