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

More type checking #26269

Merged
merged 5 commits into from
May 26, 2024
Merged

More type checking #26269

merged 5 commits into from
May 26, 2024

Conversation

Tcharl
Copy link
Contributor

@Tcharl Tcharl commented May 25, 2024

contributes to #26114


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

jdl/exporters/jhipster-deployment-exporter.ts Outdated Show resolved Hide resolved
jdl/models/jdl-deployment.ts Outdated Show resolved Hide resolved
jdl/converters/types.ts Outdated Show resolved Hide resolved
@@ -50,7 +50,7 @@ type JDLOptionHolder = JDLObject | JDLApplication;
* @param jdlOptionHolder - a JDL object (a JDLObject or a JDLApplication) containing the options.
* @return {Map<String, Object>} a map having for keys entity names and for values the JSON option contents.
*/
export function convert(jdlOptionHolder: JDLOptionHolder): Map<string, any> {
export function convert(jdlOptionHolder?: JDLOptionHolder): Map<string, any> {
Copy link
Member

Choose a reason for hiding this comment

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

Not optional

Suggested change
export function convert(jdlOptionHolder?: JDLOptionHolder): Map<string, any> {
export function convert(jdlOptionHolder: JDLOptionHolder): Map<string, any> {

@@ -34,15 +34,15 @@ export default { convertValidations };
* @return the converted JDLValidations.
*/
export function convertValidations(
validations: ParsedJDLValidation[],
constantValueGetter: (constant: string) => string | number | boolean | RegExp,
validations?: ParsedJDLValidation[],
Copy link
Member

Choose a reason for hiding this comment

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

Not optional

Suggested change
validations?: ParsedJDLValidation[],
validations: ParsedJDLValidation[],

@@ -49,7 +51,7 @@ const { APPLICATION_TYPE, BASE_NAME } = OptionNames;
* @returns {Object} a JDL importer.
* @throws {Error} if files aren't passed.
*/
export function createImporterFromFiles(files, configuration?: any) {
export function createImporterFromFiles(files?, configuration?: any) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export function createImporterFromFiles(files?, configuration?: any) {
export function createImporterFromFiles(files?, configuration: any) {

@mshima mshima enabled auto-merge May 26, 2024 16:52
@mshima mshima merged commit 949ded3 into jhipster:main May 26, 2024
52 checks passed
@mraible mraible added this to the 8.5.0 milestone May 31, 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.

3 participants