Skip to content

Commit

Permalink
Fix typo: framwork=>framework
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Nov 11, 2023
1 parent 9d6b406 commit ce14e42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generators/client/support/entity-definition.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const { ANGULAR, VUE } = clientFrameworkTypes;
* @param {string} dto - dto
* @param [customDateType]
* @param {boolean} embedded - either the actual entity is embedded or not
* @param { string} clientFramwork
* @param { string} clientFramework
* @returns variablesWithTypes: Array
*/
const generateEntityClientFields = (
Expand All @@ -65,12 +65,12 @@ const generateEntityClientFields = (
dto,
customDateType = 'dayjs.Dayjs',
embedded = false,
clientFramwork = ANGULAR,
clientFramework = ANGULAR,
) => {
const variablesWithTypes = [];
if (!embedded && primaryKey) {
const tsKeyType = getTypescriptKeyType(primaryKey);
if (clientFramwork === VUE) {
if (clientFramework === VUE) {
variablesWithTypes.push(`id?: ${tsKeyType}`);
}
}
Expand Down

0 comments on commit ce14e42

Please sign in to comment.