@raona/sp
Version:
Raona utilities to work with Sharepoint using pnp/sp
14 lines (13 loc) • 530 B
TypeScript
import { SPContentType } from '../entities/sharepoint/SPContentType';
export declare class SPContentTypes {
private contentTypesPromise;
private contentTypeDictionary;
private contentTypeIdsDictionary;
/**
* Creates an instance of splists.
* @param sourceOfTruth SPAbstractService or SPWebpart/listview/extension context or string
*/
constructor(sourceOfTruth: any);
getById(id: string): Promise<SPContentType>;
getByName(contentTypeName: string): Promise<SPContentType>;
}