Skip to content

Commit

Permalink
feat(generator): allow to overwrite the behavior for examples
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The generation of `examples` can be overwritten
  • Loading branch information
aleksandryackovlev committed Jan 31, 2022
1 parent 3af3fc7 commit 1466fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ export const createGenerator: (options?: Partial<JSFOptions>, callback?: JSFCall
...options,
});

callback(jsf);

jsf.define('example', (value) => {
return value;
});

jsf.define('examples', handleExamples);

callback(jsf);

return jsf;
};
/* eslint-enable @typescript-eslint/no-empty-function */

0 comments on commit 1466fed

Please sign in to comment.