From 28b7cee0236dbdf9a6056bc2b693bfcf2241c1fa Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Tue, 28 Aug 2018 13:52:21 +0200 Subject: [PATCH] jss: Remove noisy comments and display public api only --- types/jss/index.d.ts | 3 --- types/jss/jss-tests.ts | 3 --- 2 files changed, 6 deletions(-) diff --git a/types/jss/index.d.ts b/types/jss/index.d.ts index b19b82ab0e..c8e0f13c6c 100644 --- a/types/jss/index.d.ts +++ b/types/jss/index.d.ts @@ -138,9 +138,6 @@ export declare class JSS { * Creates a new instance of JSS. */ export function create(options?: Partial): JSS; -/** - * Creates a GenerateClassName function - */ export function createGenerateClassName(): GenerateClassName; declare const sharedInstance: JSS; /** diff --git a/types/jss/jss-tests.ts b/types/jss/jss-tests.ts index 8822264282..4c7fcc9270 100644 --- a/types/jss/jss-tests.ts +++ b/types/jss/jss-tests.ts @@ -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