mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commits add a triple slash type reference to the `main.ts` of the project when running `ng add @angular/localize`. This is purely needed for IDE purposes so that `$localize` is available globally. For the compilations `@angular/localize` types are adding the the respective TS configs files. This commits also add better support for using `@angular/localize` in `/// <reference types="@angular/localize" />`. To support this we need to move the global definition outside of a barrel file and into the index.ts file. Without this change the `$localize` method will not available globally when using triple slash type references. Closes #48434 PR Close #48502
15 lines
478 B
TypeScript
15 lines
478 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
// This file contains the public API of the `@angular/localize` entry-point
|
|
|
|
export {clearTranslations, loadTranslations} from './src/translate';
|
|
export {MessageId, TargetMessage} from './src/utils';
|
|
|
|
// Exports that are not part of the public API
|
|
export * from './private';
|