@pnp/sp
Version:
pnp - provides a fluent api for working with SharePoint REST
19 lines • 1.16 kB
TypeScript
import { ISharingEmailData, ISharingResult, SharingRole, ISharedFuncs } from "./types.js";
declare module "../files/types" {
interface _File extends ISharedFuncs {
shareWith(loginNames: string | string[], role?: SharingRole, requireSignin?: boolean, emailData?: ISharingEmailData): Promise<ISharingResult>;
}
interface IFile extends ISharedFuncs {
/**
* Shares this item with one or more users
*
* @param loginNames string or string[] of resolved login names to which this item will be shared
* @param role The role (View | Edit) applied to the share
* @param shareEverything Share everything in this folder, even items with unique permissions.
* @param requireSignin If true the user must signin to view link, otherwise anyone with the link can access the resource
* @param emailData Optional, if inlucded an email will be sent. Note subject currently has no effect.
*/
shareWith(loginNames: string | string[], role?: SharingRole, requireSignin?: boolean, emailData?: ISharingEmailData): Promise<ISharingResult>;
}
}
//# sourceMappingURL=file.d.ts.map