Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Commit

Permalink
fix(lib): fix TypeScript definition
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Aug 24, 2019
1 parent a5f08a9 commit ece436d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comment-to-assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function toAssertFromSource(code: string, options?: toAssertFromSourceOpt
/**
* transform AST to asserted AST.
*/
export function toAssertFromAST(ast: File, options: wrapAssertOptions = {}): File {
export function toAssertFromAST<T extends File>(ast: T, options: wrapAssertOptions = {}): T {
const replaceSet = new Set();
let id = 0;
traverse(ast, {
Expand Down

0 comments on commit ece436d

Please sign in to comment.