@wix/zero-config-implementation 1.95.0 → 1.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -434,16 +434,16 @@ export declare interface CSSParserAPI {
434
434
  */
435
435
  getSelectorSpecificity: (selector: string) => [number, number, number] | null;
436
436
  /**
437
- * Determines the CSS property type for a custom property.
438
- * A `@property` registration is the top-priority source (declared type). Otherwise
439
- * falls back to usage: if all usages of varName are within the same CSS property,
440
- * returns that property name; if usages differ, or if the variable is not used via
441
- * var() at all, returns the CSS data type inferred from the initial value
442
- * ('color', 'length', 'number', or 'string').
437
+ * Determines the CSS property type this one stylesheet can attribute to a custom property.
438
+ * A `@property` registration is the top-priority source (declared type). Otherwise falls back
439
+ * to usage: if every usage of varName is within the same known CSS property, returns that
440
+ * property name. Returns undefined when this stylesheet cannot attribute one it does not
441
+ * mention the variable, spreads it across several properties, or uses it in a property with
442
+ * no manifest type. Callers holding several stylesheets ask the next one, and are responsible
443
+ * for the final fallback when none can answer.
443
444
  * @param varName - The CSS variable name (with or without --)
444
- * @param defaultValue - The initial value string of the custom property
445
445
  */
446
- getVarPropertyType: (varName: string, defaultValue: string) => string;
446
+ getVarPropertyType: (varName: string) => string | undefined;
447
447
  /**
448
448
  * Returns every custom property registered via a `@property` at-rule, keyed by the
449
449
  * variable name including its leading `--`. Each entry carries the type derived from