MCPcopy
hub / github.com/typestyle/typestyle / style

Method style

src/internal/typestyle.ts:198–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 public style(...objects: (types.NestedCSSProperties | undefined)[]): string;
197 public style(...objects: (types.NestedCSSProperties | null | false | undefined)[]): string;
198 public style() {
199 const className = this._freeStyle.registerStyle(
200 convertToStyles(extend.apply(undefined, arguments)));
201 this._styleUpdated();
202 return className;
203 }
204
205 /**
206 * Takes an object where property names are ideal class names and property values are CSSProperties, and

Callers 2

TypeStyleClass · 0.95
basic.tsxFile · 0.80

Calls 2

_styleUpdatedMethod · 0.95
convertToStylesFunction · 0.90

Tested by

no test coverage detected