Page MenuHomec4science

createStyleSheet.d.ts
No OneTemporary

File Metadata

Created
Thu, Mar 13, 11:16

createStyleSheet.d.ts

/// <reference types="lodash" />
import { Styles, StyleSheet } from 'jss';
import * as Rsg from '../../typings';
/**
* By default lodash/memoize only uses the first argument
* for cache rendering. It works well if the first prameter
* is enough.
* We are Hot Module Replacing (HMR) stylesheets.
* Therefore, we cannot cache stylesheet only by component.
* We need to add cssRevisions to the key fo when the css files update,
* the revision will update and we should update the stylesheet.
*/
declare const _default: ((styles: (t: Rsg.Theme) => Styles<string>, config: Rsg.ProcessedStyleguidistCSSConfig, componentName: string, cssRevision: string) => StyleSheet<string>) & import("lodash").MemoizedFunction;
export default _default;

Event Timeline