Merge pull request #31166 from schultzp2020/constructor-parameters
refactor: convert constructor parameter properties for erasableSyntaxOnly compatibility
This commit is contained in:
@@ -89,9 +89,9 @@ export type HighlightedSearchResultTextProps = {
|
||||
|
||||
// @public
|
||||
export class MockSearchApi implements SearchApi {
|
||||
constructor(mockedResults?: SearchResultSet | undefined);
|
||||
constructor(mockedResults?: SearchResultSet);
|
||||
// (undocumented)
|
||||
mockedResults?: SearchResultSet | undefined;
|
||||
mockedResults?: SearchResultSet;
|
||||
// (undocumented)
|
||||
query(
|
||||
_query: SearchQuery,
|
||||
|
||||
@@ -40,7 +40,11 @@ export interface SearchApi {
|
||||
* Search Api Mock that can be used in tests and storybooks
|
||||
*/
|
||||
export class MockSearchApi implements SearchApi {
|
||||
constructor(public mockedResults?: SearchResultSet) {}
|
||||
public mockedResults?: SearchResultSet;
|
||||
|
||||
constructor(mockedResults?: SearchResultSet) {
|
||||
this.mockedResults = mockedResults;
|
||||
}
|
||||
|
||||
query(
|
||||
_query: SearchQuery,
|
||||
|
||||
Reference in New Issue
Block a user