jss: Remove noisy comments and display public api only

This commit is contained in:
Sebastian Silbermann
2018-08-28 13:52:21 +02:00
parent c334034df9
commit 28b7cee023
2 changed files with 0 additions and 6 deletions

View File

@@ -138,9 +138,6 @@ export declare class JSS {
* Creates a new instance of JSS.
*/
export function create(options?: Partial<JSSOptions>): JSS;
/**
* Creates a GenerateClassName function
*/
export function createGenerateClassName(): GenerateClassName;
declare const sharedInstance: JSS;
/**

View File

@@ -47,9 +47,6 @@ const rule = attachedStyleSheet.addRule('dynamicRule', { color: 'indigo' });
rule.prop('border-radius', 5).prop('color'); // $ExpectType string
attachedStyleSheet.classes.dynamicRule; // $ExpectType string
const generateClassName = createGenerateClassName();
const dynamicRuleClassName = generateClassName(rule, attachedStyleSheet);
attachedStyleSheet.deleteRule('dynamicRule');
// test that `addRule` supports the shorthand signature