-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
More type checking #26269
Conversation
@@ -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> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not optional
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[], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not optional
validations?: ParsedJDLValidation[], | |
validations: ParsedJDLValidation[], |
jdl/jdl-importer.ts
Outdated
@@ -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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export function createImporterFromFiles(files?, configuration?: any) { | |
export function createImporterFromFiles(files?, configuration: any) { |
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.