Skip to content

Commit

Permalink
type clarified
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Oct 1, 2023
1 parent 3b60159 commit 36368ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/version2/issueSecuritySchemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class IssueSecuritySchemes {
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#permissions) required:**
* _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async associateSchemesToProjects<T = unknown>(
async associateSchemesToProjects<T = Models.TaskProgressObject>(
parameters: Parameters.AssociateSchemesToProjects,
callback: Callback<T>,
): Promise<void>;
Expand All @@ -276,11 +276,11 @@ export class IssueSecuritySchemes {
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#permissions) required:**
* _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async associateSchemesToProjects<T = unknown>(
async associateSchemesToProjects<T = Models.TaskProgressObject>(
parameters: Parameters.AssociateSchemesToProjects,
callback?: never,
): Promise<T>;
async associateSchemesToProjects<T = unknown>(
async associateSchemesToProjects<T = Models.TaskProgressObject>(
parameters: Parameters.AssociateSchemesToProjects,
callback?: Callback<T>,
): Promise<void | T> {
Expand Down
2 changes: 1 addition & 1 deletion src/version2/models/taskProgressObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface TaskProgressObject {
/** The progress of the task, as a percentage complete. */
progress: number;
/** The result of the task execution. */
result?: {};
result?: any;
/** The URL of the task. */
self: string;
/** A timestamp recording when the task was started. */
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/associateSchemesToProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { OldToNewSecurityLevelMappings } from '../models';
/** Issue security scheme, project, and remapping details. */
export interface AssociateSchemesToProjects {
/** The list of scheme levels which should be remapped to new levels of the issue security scheme. */
oldToNewSecurityLevelMappings?: OldToNewSecurityLevelMappings[];
oldToNewSecurityLevelMappings: OldToNewSecurityLevelMappings[];
/** The ID of the project. */
projectId: string;
/** The ID of the issue security scheme. Providing null will clear the association with the issue security scheme. */
Expand Down

0 comments on commit 36368ac

Please sign in to comment.