feat: fix api spec errors
This commit is contained in:
@@ -6,7 +6,10 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
import type { HttpParameterCodec } from '@ngify/http';
|
||||
import {
|
||||
type HttpParameterCodec,
|
||||
HttpParams as NgifyHttpParams,
|
||||
} from '@ngify/http';
|
||||
|
||||
/**
|
||||
* Provides encoding and decoding of URL parameter and query-string values.
|
||||
@@ -298,6 +301,13 @@ export class HttpParams {
|
||||
);
|
||||
}
|
||||
|
||||
toNgify(): NgifyHttpParams {
|
||||
this.init();
|
||||
return new NgifyHttpParams().appendAll(
|
||||
Object.fromEntries(this.map.entries())
|
||||
);
|
||||
}
|
||||
|
||||
private clone(update: Update | Update[]): HttpParams {
|
||||
const clone = new HttpParams({
|
||||
encoder: this.encoder,
|
||||
|
||||
Reference in New Issue
Block a user