Skip to content

Commit

Permalink
fix(hiccup): serialize() args
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 31, 2018
1 parent 52417e3 commit 1e8b4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hiccup/src/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ import { escape } from "./escape";
* will have an autogenerated `key` attribute injected. If `span` is
* enabled, `keys` will be enabled by default too.
*
* @param tree elements / component tree
* @param tree hiccup elements / component tree
* @param ctx arbitrary user context object
* @param escape auto-escape entities
* @param span use spans for text content
* @param keys attach key attribs
*/
export const serialize = (tree: any[], ctx?: any, escape = false, span = false, keys = span, path = [0]) =>
export const serialize = (tree: any, ctx?: any, escape = false, span = false, keys = span, path = [0]) =>
_serialize(tree, ctx, escape, span, keys, path);

const _serialize = (tree: any, ctx: any, esc: boolean, span: boolean, keys: boolean, path: any[]) => {
Expand Down

0 comments on commit 1e8b4ef

Please sign in to comment.