mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
jss: Remove noisy comments and display public api only
This commit is contained in:
3
types/jss/index.d.ts
vendored
3
types/jss/index.d.ts
vendored
@@ -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;
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user