Skip to content

Commit

Permalink
ensure retrocompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed Nov 2, 2024
1 parent 4948d95 commit 14b0257
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
24 changes: 24 additions & 0 deletions generators/angular/types-deprecated.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* Copyright 2013-2024 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Will be deprecated and merged into AngularApplication
*/
export type PartialAngularApplication = {
angularLocaleId: string;
};
18 changes: 18 additions & 0 deletions generators/angular/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/**
* Copyright 2013-2024 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { Entity } from '../../lib/types/application/entity.js';
import type { ApplicationType } from '../../lib/types/application/application.js';

Expand Down
8 changes: 7 additions & 1 deletion generators/client/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@ import type { ExportApplicationPropertiesFromCommand } from '../../lib/command/i
import type { CypressApplication } from '../cypress/types.js';
import type { JavaScriptApplication, JavaScriptSourceType } from '../javascript/types.js';
import type { PostWritingEntitiesTaskParam } from '../../lib/types/application/tasks.js';
import type { PartialAngularApplication } from '../angular/types-deprecated.js';
import type Command from './command.ts';

type ApplicationClientProperties = ExportApplicationPropertiesFromCommand<typeof Command>;

export type ClientApplication = ApplicationClientProperties &
export type FrontendApplication = ApplicationClientProperties &
JavaScriptApplication &
CypressApplication & {
webappLoginRegExp: string;
webappEnumerationsDir?: string;
clientFrameworkBuiltIn?: boolean;
};

/**
* Deprecated in favor of frontend application.
*/
export type ClientApplication = JavaScriptApplication & PartialAngularApplication;

export type ClientResources = {
/**
* resources added to root file.
Expand Down

0 comments on commit 14b0257

Please sign in to comment.