UNPKG

@raona/sp

Version:

Raona utilities to work with Sharepoint using pnp/sp

14 lines (13 loc) 584 B
import { SPContentType } from '../entities/sharepoint/SPContentType'; export declare class SPListContentTypes { private contentTypesPromise; private contentTypeDictionary; private contentTypeIdsDictionary; /** * Creates an instance of splists. * @param sourceOfTruth SPAbstractService or SPWebpart/listview/extension context or string */ constructor(sourceOfTruth: any, webUrlToOperate?: string, ...listNames: string[]); getByName(contentTypeName: string): Promise<SPContentType>; getById(id: string): Promise<SPContentType>; }