mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Change to represent get index
This commit is contained in:
Vendored
+1
-1
@@ -103,7 +103,7 @@ export interface RuleOptions {
|
||||
export declare class SheetsRegistry {
|
||||
constructor();
|
||||
registry: ReadonlyArray<StyleSheet<any>>;
|
||||
index(): number;
|
||||
readonly index: number;
|
||||
add(sheet: StyleSheet<any>): void;
|
||||
reset(): void;
|
||||
remove(sheet: StyleSheet<any>): void;
|
||||
|
||||
@@ -88,8 +88,8 @@ sheetsRegistry.add(secondStyleSheet);
|
||||
sheetsRegistry.registry.length; // $ExpectType number
|
||||
sheetsRegistry.remove(secondStyleSheet);
|
||||
|
||||
sheetsRegistry.index(); // $ExpectType number
|
||||
sheetsRegistry.index; // $ExpectType () => number
|
||||
sheetsRegistry.index; // $ExpectType number
|
||||
sheetsRegistry.index = 5; // $ExpectError
|
||||
sheetsRegistry.toString(); // $ExpectType string
|
||||
// With css options
|
||||
sheetsRegistry.toString({indent: 5}); // $ExpectType string
|
||||
|
||||
Reference in New Issue
Block a user