fix: lint error

This commit is contained in:
George He
2024-03-07 14:25:43 +08:00
parent 84699fee4b
commit 39d261637b
2 changed files with 2 additions and 5 deletions

View File

@@ -115,11 +115,6 @@ export class HeaderList<T extends Header> extends PropertyList<T> {
throw unsupportedError('eachParent');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
toObject(_excludeDisabled?: boolean, _caseSensitive?: boolean, _multiValue?: boolean, _sanitizeKeys?: boolean) {
throw unsupportedError('toObject');
}
contentSize(): number {
return this.list
.map(header => header.toString())

View File

@@ -45,6 +45,8 @@ export class QueryParam extends Property {
// (static) _postman_propertyAllowsMultipleValues :Boolean
// (static) _postman_propertyIndexKey :String
static _index = 'key';
static parse(queryStr: string) {
const params = new UrlSearchParams(queryStr);
return Array.from(params.entries())