/** * @typedef {Object} PartialSupport * @prop {boolean} ignorePartialSupport if true, the feature is fully supported in this use case and no warning should be shown * @prop {string} [partialSupportMessage] if the feature is not fully supported, a better warning message to be provided to the user */ /** * checks the MDN compatibility data for partial support of a CSS property * @param {string} propertyName the name of the property, e.g. 'display' * @param {string} propertyValue the value of the property, e.g. 'block' * @return {import('./convertMdnBrowser.js').MdnSupportData | false} information about the support of the property (or false if no information is available) */ export function checkProperty(propertyName: string, propertyValue: string): import('./convertMdnBrowser.js').MdnSupportData | false; /** * checks MDN for more detailed information about a partially supported feature * in order to provide a more detailed warning message to the user * @param {import('postcss').ChildNode} node the node to check * @param {readonly string[] | string} browsers the browserslist query for browsers to support * @return {PartialSupport} */ export function checkPartialSupport(node: import('postcss').ChildNode, browsers: readonly string[] | string): PartialSupport; export type PartialSupport = { /** * if true, the feature is fully supported in this use case and no warning should be shown */ ignorePartialSupport: boolean; /** * if the feature is not fully supported, a better warning message to be provided to the user */ partialSupportMessage?: string; };