Skip to content

Commit cdffd7f

Browse files
committed
fix PluginContainer.toArray
1 parent 3c687ec commit cdffd7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,13 @@ export function stringToTokens(
5656

5757
export function tokensToAST(tokens: ReadonlyArray<Token>): ASTNode[];
5858

59-
interface PluginContainerResult<A> {
60-
[index: number]: any;
59+
interface PluginContainerResult<A> extends Array<any> {
6160
0: A;
6261
}
6362

6463
export class PluginContainer<A> {
6564
constructor(plugin: A, ...options: any[]);
66-
toArray(): [A, any];
65+
toArray(): PluginContainerResult<A>;
6766
}
6867

6968
export function blockPlugin(md: any, name: string, options: object): any;

0 commit comments

Comments
 (0)