mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #45631 update(angular.js): v1.8 changes by @peterblazejewicz
- `UNSAFE_restoreLegacyJqLiteXHTMLReplacement` method added
- test updated
- version bump
e55d352e94
Thanks!
This commit is contained in:
parent
bcc609c6f3
commit
909598b4fe
@ -1481,6 +1481,10 @@ function testIHttpParamSerializerJQLikeProvider() {
|
||||
});
|
||||
}
|
||||
|
||||
function testJqLiteRestoreBehavior() {
|
||||
angular.UNSAFE_restoreLegacyJqLiteXHTMLReplacement(); // $ExpectType void
|
||||
}
|
||||
|
||||
function anyOf2<T1, T2>(v1: T1, v2: T2) {
|
||||
return Math.random() < 0.5 ? v1 : v2;
|
||||
}
|
||||
|
||||
11
types/angular/index.d.ts
vendored
11
types/angular/index.d.ts
vendored
@ -188,6 +188,17 @@ declare namespace angular {
|
||||
* @param extraModules An optional array of modules that should be added to the original list of modules that the app was about to be bootstrapped with.
|
||||
*/
|
||||
resumeBootstrap?(extraModules?: string[]): ng.auto.IInjectorService;
|
||||
|
||||
/**
|
||||
* Restores the pre-1.8 behavior of jqLite that turns XHTML-like strings like
|
||||
* `<div /><span />` to `<div></div><span></span>` instead of `<div><span></span></div>`.
|
||||
* The new behavior is a security fix so if you use this method, please try to adjust
|
||||
* to the change & remove the call as soon as possible.
|
||||
* Note that this only patches jqLite. If you use jQuery 3.5.0 or newer, please read
|
||||
* [jQuery 3.5 upgrade guide](https://jquery.com/upgrade-guide/3.5/) for more details
|
||||
* about the workarounds.
|
||||
*/
|
||||
UNSAFE_restoreLegacyJqLiteXHTMLReplacement(): void;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Loading…
Reference in New Issue
Block a user