angular/packages/localize
Alan Agius a1a8e91eca fix(localize): add triple slash type reference on @angular/localize on `ng add (#48502)
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
2023-01-04 11:50:45 -08:00
..
init build: reformat BUILD files (#48181) 2022-11-22 21:22:34 +00:00
schematics fix(localize): add triple slash type reference on @angular/localize on `ng add (#48502) 2023-01-04 11:50:45 -08:00
src build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
test refactor: update packages/localize to be strict ESM (#48521) 2022-12-19 19:50:43 +00:00
tools refactor: update packages/localize to be strict ESM (#48521) 2022-12-19 19:50:43 +00:00
BUILD.bazel build: reformat BUILD files (#48181) 2022-11-22 21:22:34 +00:00
index.ts fix(localize): add triple slash type reference on @angular/localize on `ng add (#48502) 2023-01-04 11:50:45 -08:00
localize.ts fix(localize): add triple slash type reference on @angular/localize on `ng add (#48502) 2023-01-04 11:50:45 -08:00
package.json build: update babel dependencies (#47765) 2022-10-25 21:57:13 +02:00
PACKAGE.md docs(localize): expose documentation for the @angular/localize package (#40317) 2021-03-19 12:36:10 -07:00
private.ts refactor(localize): init APF entry-point should not duplicate code (#45405) 2022-04-21 11:09:39 -07:00