Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 312 Bytes

sch-default-function.md

File metadata and controls

14 lines (11 loc) · 312 Bytes

sch-default-function

Generate an export function with schematics template

import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';

export default function ${1:index}(_options: any): Rule {
  return (tree: Tree, _context: SchematicContext) => {
    ${0}
    return tree;
  };
}