@carbon/ibm-products
Version:
Carbon for IBM Products
38 lines (37 loc) • 1.47 kB
TypeScript
export function prepareProps(...values: {} | "" | [""]): {};
export function deprecatePropUsage(validator: any, deprecated: any, additionalInfo: any): (props: any, propName: any, comp: any, loc: any, propFullName: any, secret: any) => any;
export function deprecateProp(validator: any, additionalInfo: any): (props: any, propName: any, comp: any, loc: any, propFullName: any, secret: any) => any;
export function getDeprecatedArgTypes(deprecatedProps: any): {};
export function extractShapesArray(items: any): any;
/**
* A prop-types validation function that takes an array of type checkers and
* requires prop values to satisfy all of the type checkers. This can be useful
* to combine custom validation functions with regular prop types, or for
* combining inherited prop-types from another component with tighter
* requirements.
*
* Examples:
*
* MyComponent.propTypes = {
*
* foo: allPropTypes([
* customValidationFunction,
* PropTypes.arrayOf(
* PropTypes.shape({
* text: PropType.string
* })
* )
* ]),
*
* kind: allPropTypes([
* Button.propTypes.kind,
* PropTypes.oneOf(['primary', 'secondary'])
* ]),
*
* }
*/
export const allPropTypes: any;
export function isRequiredIf(checker: any, conditionFn: any): (props: any, propName: any, componentName: any, location: any, propFullName: any, secret: any) => any;
export namespace isRequiredIf {
function decorate(checker: any): void;
}