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