Skip to content

Commit

Permalink
include pre/post transform declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 27, 2016
1 parent bee95f8 commit ba5ec54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ declare type CompiledFunctionResult = {
}

declare type ModuleOptions = {
preTransformNode: (el: ASTElement) => void;
transformNode: (el: ASTElement) => void; // transform an element's AST node
postTransformNode: (el: ASTElement) => void;
genData: (el: ASTElement) => string; // generate extra data string for an element
transformCode?: (el: ASTElement, code: string) => string; // further transform generated code for an element
staticKeys?: Array<string>; // AST properties to be considered static
Expand Down

0 comments on commit ba5ec54

Please sign in to comment.