@salesforce/core
Version:
Core libraries to interact with SFDX projects, orgs, and APIs.
27 lines (26 loc) • 837 B
TypeScript
type FeatureTypes = {
simpleFeatureMapping: {
[key: string]: string[];
};
quantifiedFeatureMapping: Record<string, string | number | boolean | null | undefined>;
deprecatedFeatures: string[];
};
export declare class ScratchOrgFeatureDeprecation {
private featureTypes;
constructor(options?: FeatureTypes);
/**
* Gets list of feature warnings that should be logged
*
* @param features The requested features.
* @returns List of string feature warnings.
*/
getFeatureWarnings(features: string | string[]): string[];
/**
* Removes all deprecated features for the organization.
*
* @param features List of features to filter
* @returns feature array with proper mapping.
*/
filterDeprecatedFeatures(features: string[]): string[];
}
export {};