mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-26 08:14:27 +00:00
Index as a function which returns a number
This commit is contained in:
@@ -89,6 +89,7 @@ sheetsRegistry.registry.length; // $ExpectType number
|
||||
sheetsRegistry.remove(secondStyleSheet);
|
||||
|
||||
sheetsRegistry.index(); // $ExpectType number
|
||||
sheetsRegistry.index; // $ExpectType () => number
|
||||
sheetsRegistry.toString(); // $ExpectType string
|
||||
// With css options
|
||||
sheetsRegistry.toString({indent: 5}); // $ExpectType string
|
||||
|
||||
Reference in New Issue
Block a user