MCPcopy Create free account
hub / github.com/webstudio-is/webstudio / valueContainsVarReference

Function valueContainsVarReference

packages/css-data/src/parse-css.test.ts:1890–1893  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1888 expect.objectContaining({ property, value });
1889
1890const valueContainsVarReference = (value: unknown): boolean => {
1891 const serialized = JSON.stringify(value);
1892 return serialized.includes('"type":"var"') || serialized.includes("var(");
1893};
1894
1895const decls = (css: string) =>
1896 parseCss(`.x { ${css} }`, new Map()).styles.filter(

Callers 1

parse-css.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected