Skip to content

Commit

Permalink
make DraftPlugins in ITypeDraftConfig optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mistlog committed Jul 21, 2020
1 parent 0b64099 commit 99710a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/literator.ts
Expand Up @@ -8,7 +8,7 @@ import { MakeDefaultTranscriber, IDSL, IPlugin, Transcriber } from "../src";
*/
export interface ITypeDraftConfig {
DSLs: Array<{ name: string; dsl: () => IDSL }>;
DraftPlugins: Array<IPlugin & Function>;
DraftPlugins?: Array<IPlugin & Function>;
}

export function MakeTranscriberWithConfig(code: string, config: ITypeDraftConfig) {
Expand Down

0 comments on commit 99710a8

Please sign in to comment.