MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / OneNoteSaveablePage

Class OneNoteSaveablePage

src/scripts/saveToOneNote/oneNoteSaveablePage.ts:3–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import {OneNoteSaveable} from "./oneNoteSaveable";
2
3export class OneNoteSaveablePage implements OneNoteSaveable {
4 private page: OneNoteApi.OneNotePage;
5
6 constructor(page: OneNoteApi.OneNotePage) {
7 this.page = page;
8 }
9
10 public getPage(): Promise<OneNoteApi.OneNotePage> {
11 return Promise.resolve(this.page);
12 }
13
14 public getNumPages(): number {
15 return 1;
16 }
17
18 public getPatch(index: number): Promise<OneNoteApi.Revision[]> {
19 return Promise.resolve(undefined);
20 }
21
22 public getNumPatches(): number {
23 return 0;
24 }
25
26 public getBatch(index: number): Promise<OneNoteApi.BatchRequest> {
27 return Promise.resolve(undefined);
28 }
29
30 public getNumBatches(): number {
31 return 0;
32 }
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected