1 | import { IFile } from "./types.js";
|
2 | declare module "../webs/types" {
|
3 | interface _Web {
|
4 | getFileByServerRelativePath(fileRelativeUrl: string): IFile;
|
5 | getFileById(uniqueId: string): IFile;
|
6 | getFileByUrl(fileUrl: string): IFile;
|
7 | }
|
8 | interface IWeb {
|
9 | /**
|
10 | * Gets a file by server relative url if your file name contains # and % characters
|
11 | *
|
12 | * @param fileRelativeUrl The server relative path to the file (including /sites/ if applicable)
|
13 | */
|
14 | getFileByServerRelativePath(fileRelativeUrl: string): IFile;
|
15 | /**
|
16 | * Gets a file by id
|
17 | *
|
18 | * @param uniqueId The UniqueId of the file
|
19 | */
|
20 | getFileById(uniqueId: string): IFile;
|
21 | /**
|
22 | * Gets a file from a sharing link or absolute url
|
23 | *
|
24 | * @param fileUrl Absolute url of the file to get
|
25 | */
|
26 | getFileByUrl(fileUrl: string): IFile;
|
27 | }
|
28 | }
|
29 | //# sourceMappingURL=web.d.ts.map |
\ | No newline at end of file |