ICustomNodeFormatter.d.ts 517 B

1234567891011121314151617181920
  1. import { TObject } from '../../types/TObject';
  2. import { TStatement } from '../../types/node/TStatement';
  3. export interface ICustomNodeFormatter {
  4. /**
  5. * @param {string} template
  6. * @param {TMapping} mapping
  7. * @returns {string}
  8. */
  9. formatTemplate <TMapping extends TObject> (
  10. template: string,
  11. mapping: TMapping
  12. ): string;
  13. /**
  14. * @param {TStatement[]} structure
  15. * @returns {TStatement[]}
  16. */
  17. formatStructure (structure: TStatement[]): TStatement[];
  18. }