UNPKG

@pnp/sp

Version:

pnp - provides a fluent api for working with SharePoint REST

30 lines 747 B
import { __decorate } from "tslib"; import { spInvokableFactory, _SPCollection, _SPInstance, } from "../spqueryable.js"; import { defaultPath } from "../decorators.js"; /** * Describes a collection of Form objects * */ let _Forms = class _Forms extends _SPCollection { /** * Gets a form by id * * @param id The guid id of the item to retrieve */ getById(id) { return Form(this).concat(`('${id}')`); } }; _Forms = __decorate([ defaultPath("forms") ], _Forms); export { _Forms }; export const Forms = spInvokableFactory(_Forms); /** * Describes a single of Form instance * */ export class _Form extends _SPInstance { } export const Form = spInvokableFactory(_Form); //# sourceMappingURL=types.js.map