We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c687ec commit cdffd7fCopy full SHA for cdffd7f
src/index.d.ts
@@ -56,14 +56,13 @@ export function stringToTokens(
56
57
export function tokensToAST(tokens: ReadonlyArray<Token>): ASTNode[];
58
59
-interface PluginContainerResult<A> {
60
- [index: number]: any;
+interface PluginContainerResult<A> extends Array<any> {
61
0: A;
62
}
63
64
export class PluginContainer<A> {
65
constructor(plugin: A, ...options: any[]);
66
- toArray(): [A, any];
+ toArray(): PluginContainerResult<A>;
67
68
69
export function blockPlugin(md: any, name: string, options: object): any;
0 commit comments