Skip to content

Commit 45e8409

Browse files
refactor(Param): Make all fields optional in ParamDeclaration interface
1 parent 69a4465 commit 45e8409

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/params/interface.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export interface ParamDeclaration {
133133
* - Non-url parameters (`param: { foo: null }`): `any`
134134
*
135135
*/
136-
type: string | ParamType;
136+
type?: string | ParamType;
137137

138138
/**
139139
* The parameter's `array` mode
@@ -168,7 +168,7 @@ export interface ParamDeclaration {
168168
* @default `auto` for query parameters, such as `url: '/foo?queryParam'`
169169
* @default `true` if the parameter name ends in `[]`, such as `url: '/foo/{implicitArrayParam:int[]}'`
170170
*/
171-
array: boolean;
171+
array?: boolean;
172172

173173
/**
174174
* Squash mode: omit default parameter values in URL
@@ -223,7 +223,7 @@ export interface ParamDeclaration {
223223
*
224224
* Default: If squash is not set, it uses the configured default squash policy. (See [[defaultSquashPolicy]]())
225225
*/
226-
squash: boolean | string;
226+
squash?: boolean | string;
227227

228228
/**
229229
* @internalapi
@@ -242,15 +242,15 @@ export interface ParamDeclaration {
242242
* ]
243243
* ```
244244
*/
245-
replace: Replace[];
245+
replace?: Replace[];
246246

247247
/**
248248
* @hidden
249249
* @internalapi
250250
*
251251
* This is not part of the declaration; it is a calculated value depending on if a default value was specified or not.
252252
*/
253-
isOptional: boolean;
253+
isOptional?: boolean;
254254

255255
/**
256256
* Dynamic flag
@@ -272,7 +272,7 @@ export interface ParamDeclaration {
272272
*
273273
* Default: `false`
274274
*/
275-
dynamic: boolean;
275+
dynamic?: boolean;
276276

277277
/**
278278
* Disables url-encoding of parameter values
@@ -310,7 +310,7 @@ export interface ParamDeclaration {
310310
*
311311
* Default: `false`
312312
*/
313-
raw: boolean;
313+
raw?: boolean;
314314

315315
/**
316316
* Enables/disables inheriting of this parameter's value
@@ -348,7 +348,7 @@ export interface ParamDeclaration {
348348
*
349349
* Default: `true`
350350
*/
351-
inherit: boolean;
351+
inherit?: boolean;
352352
}
353353

354354
/** @internalapi */

0 commit comments

Comments
 (0)