Skip to content

Commit

Permalink
Adding missing field for DiscussionNotePositionTextSchema (#3572)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple authored Apr 12, 2024
1 parent df8fe8c commit 9ec1c62
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/core/src/templates/ResourceDiscussions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,23 @@ export interface DiscussionNotePositionBaseSchema extends Record<string, unknown
new_path?: string;
}

export interface DiscussionNotePositionTextLineSchema {
line_code?: string;
type?: 'new' | 'old';
old_line?: number;
new_line?: number;
}

export interface DiscussionNotePositionLineRangeSchema {
start?: DiscussionNotePositionTextLineSchema;
end?: DiscussionNotePositionTextLineSchema;
}

export type DiscussionNotePositionTextSchema = DiscussionNotePositionBaseSchema & {
position_type: 'text';
new_line?: string;
old_line?: string;
line_range?: DiscussionNotePositionLineRangeSchema;
};

export type DiscussionNotePositionImageSchema = DiscussionNotePositionBaseSchema & {
Expand Down

0 comments on commit 9ec1c62

Please sign in to comment.