From 047cf04ab00457c781a3544d102a526b4e440d84 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Thu, 5 Dec 2019 19:20:28 +0000 Subject: [PATCH 1/2] Gutenboarding: Fix DomainSuggestionQuery type --- .../gutenboarding/stores/domain-suggestions/types.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/landing/gutenboarding/stores/domain-suggestions/types.ts b/client/landing/gutenboarding/stores/domain-suggestions/types.ts index 0d6494bb8125..b972dc060568 100644 --- a/client/landing/gutenboarding/stores/domain-suggestions/types.ts +++ b/client/landing/gutenboarding/stores/domain-suggestions/types.ts @@ -1,9 +1,16 @@ +/** + * External dependencies + */ +import { InputArgs } from '@wordpress/url'; + enum ActionType { RECEIVE_DOMAIN_SUGGESTIONS = 'RECEIVE_DOMAIN_SUGGESTIONS', } export { ActionType }; -export interface DomainSuggestionQuery { +// We're extending InputArgs in order to add an index signature, +// which we need for using `DomainSuggestionQuery` objects with `addQueryArgs`. +export interface DomainSuggestionQuery extends InputArgs { /** * True to include .blog subdomain suggestions * From 7affbedc0ffa65498f18f946b2d3d5a2d3c4975f Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Thu, 5 Dec 2019 19:22:20 +0000 Subject: [PATCH 2/2] Gutenboarding: Simplify an enum export --- .../landing/gutenboarding/stores/domain-suggestions/types.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/landing/gutenboarding/stores/domain-suggestions/types.ts b/client/landing/gutenboarding/stores/domain-suggestions/types.ts index b972dc060568..c4366b68998a 100644 --- a/client/landing/gutenboarding/stores/domain-suggestions/types.ts +++ b/client/landing/gutenboarding/stores/domain-suggestions/types.ts @@ -3,10 +3,9 @@ */ import { InputArgs } from '@wordpress/url'; -enum ActionType { +export enum ActionType { RECEIVE_DOMAIN_SUGGESTIONS = 'RECEIVE_DOMAIN_SUGGESTIONS', } -export { ActionType }; // We're extending InputArgs in order to add an index signature, // which we need for using `DomainSuggestionQuery` objects with `addQueryArgs`.