Skip to content

Commit

Permalink
refactor(Param): Make all fields optional in ParamDeclaration interface
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jul 5, 2018
1 parent 69a4465 commit 45e8409
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/params/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export interface ParamDeclaration {
* - Non-url parameters (`param: { foo: null }`): `any`
*
*/
type: string | ParamType;
type?: string | ParamType;

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

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

/**
* @internalapi
Expand All @@ -242,15 +242,15 @@ export interface ParamDeclaration {
* ]
* ```
*/
replace: Replace[];
replace?: Replace[];

/**
* @hidden
* @internalapi
*
* This is not part of the declaration; it is a calculated value depending on if a default value was specified or not.
*/
isOptional: boolean;
isOptional?: boolean;

/**
* Dynamic flag
Expand All @@ -272,7 +272,7 @@ export interface ParamDeclaration {
*
* Default: `false`
*/
dynamic: boolean;
dynamic?: boolean;

/**
* Disables url-encoding of parameter values
Expand Down Expand Up @@ -310,7 +310,7 @@ export interface ParamDeclaration {
*
* Default: `false`
*/
raw: boolean;
raw?: boolean;

/**
* Enables/disables inheriting of this parameter's value
Expand Down Expand Up @@ -348,7 +348,7 @@ export interface ParamDeclaration {
*
* Default: `true`
*/
inherit: boolean;
inherit?: boolean;
}

/** @internalapi */
Expand Down

0 comments on commit 45e8409

Please sign in to comment.