Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzz2048 committed Jun 23, 2023
1 parent b6008e4 commit 4b43984
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,13 @@ export type ResdoOperations = {
undoOperations: doOperation[] | null;
}
type DataType = "markdown" | "dom";
export async function insertBlock(dataType: DataType, data: string, previousID: BlockId): Promise<ResdoOperations> {
export async function insertBlock(dataType: DataType, data: string, previousID: BlockId, nextID: BlockId, parentID: BlockId | DocumentId): Promise<ResdoOperations> {
let data1 = {
dataType: dataType,
data: data,
previousID: previousID
nextID: nextID,
previousID: previousID,
parentID: parentID
}
let url = '/api/block/insertBlock';
return request(url, data1);
Expand Down

0 comments on commit 4b43984

Please sign in to comment.