MCPcopy Create free account
hub / github.com/adobe/react-spectrum / toJS

Method toJS

packages/@react-spectrum/s2/style/style-macro.ts:1043–1048  ·  view source on GitHub ↗
(allowedOverridesSet: Set<string>, indent?: string)

Source from the content-addressed store, hash-verified

1041 }
1042
1043 toJS(allowedOverridesSet: Set<string>, indent?: string): string {
1044 conditionStack.push(this.themeCondition || this.prelude);
1045 let res = super.toJS(allowedOverridesSet, indent);
1046 conditionStack.pop();
1047 return res;
1048 }
1049}
1050
1051/** A rule that applies conditionally at runtime. */

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
toJSMethod · 0.65

Tested by

no test coverage detected