diff --git a/generators/angular/types-deprecated.d.ts b/generators/angular/types-deprecated.d.ts new file mode 100644 index 000000000000..8b87e0995352 --- /dev/null +++ b/generators/angular/types-deprecated.d.ts @@ -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; +}; diff --git a/generators/angular/types.d.ts b/generators/angular/types.d.ts index 8a3632f76433..16072576f5b1 100644 --- a/generators/angular/types.d.ts +++ b/generators/angular/types.d.ts @@ -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'; diff --git a/generators/client/types.d.ts b/generators/client/types.d.ts index 4aab32bf6ab7..12803f3331d9 100644 --- a/generators/client/types.d.ts +++ b/generators/client/types.d.ts @@ -3,11 +3,12 @@ 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; -export type ClientApplication = ApplicationClientProperties & +export type FrontendApplication = ApplicationClientProperties & JavaScriptApplication & CypressApplication & { webappLoginRegExp: string; @@ -15,6 +16,11 @@ export type ClientApplication = ApplicationClientProperties & clientFrameworkBuiltIn?: boolean; }; +/** + * Deprecated in favor of frontend application. + */ +export type ClientApplication = JavaScriptApplication & PartialAngularApplication; + export type ClientResources = { /** * resources added to root file.