Skip to content

Commit

Permalink
commit while awaiting handleMultipleResultsFound
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodecleyre committed Jul 30, 2023
1 parent 008bd86 commit ba3be11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/m365/spo/commands/sitedesign/sitedesign-get.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Logger } from '../../../../cli/Logger';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import request, { CliRequestOptions } from '../../../../request';
import { spo } from '../../../../utils/spo';
import { validation } from '../../../../utils/validation';
import SpoCommand from '../../../base/SpoCommand';
Expand Down Expand Up @@ -77,7 +77,7 @@ class SpoSiteDesignGetCommand extends SpoCommand {
return args.options.id;
}

const requestOptions: any = {
const requestOptions: CliRequestOptions = {
url: `${spoUrl}/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteDesigns`,
headers: {
accept: 'application/json;odata=nometadata'
Expand Down
4 changes: 2 additions & 2 deletions src/m365/spo/commands/sitedesign/sitedesign-remove.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Cli } from '../../../../cli/Cli';
import { Logger } from '../../../../cli/Logger';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import request, { CliRequestOptions } from '../../../../request';
import { ContextInfo, spo } from '../../../../utils/spo';
import { validation } from '../../../../utils/validation';
import SpoCommand from '../../../base/SpoCommand';
Expand Down Expand Up @@ -86,7 +86,7 @@ class SpoSiteDesignRemoveCommand extends SpoCommand {
try {
const spoUrl: string = await spo.getSpoUrl(logger, this.debug);
const requestDigest: ContextInfo = await spo.getRequestDigest(spoUrl);
const requestOptions: any = {
const requestOptions: CliRequestOptions = {
url: `${spoUrl}/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.DeleteSiteDesign`,
headers: {
'X-RequestDigest': requestDigest.FormDigestValue,
Expand Down

0 comments on commit ba3be11

Please sign in to comment.