File tree Expand file tree Collapse file tree
packages/case-definition-generator/src/domain/generator/markdown Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export const formatParameterDescription = (
2323 parameterName : string ,
2424) : string => {
2525 if ( ! documentation ) {
26+ // eslint-disable-next-line no-console
2627 console . log (
2728 `WARN (${ name } ): Parameter '${ parameterName } ' has no documentation` ,
2829 ) ;
Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ import { GeneratedFile } from '../types.js';
55import { formatParameterDescription } from './formatters/formatters.js' ;
66import { LanguageDetails , ContentWriter } from './types.js' ;
77
8+ const makeContent = ( ) : ContentWriter => {
9+ const internalContent : string [ ] = [ ] ;
10+
11+ return {
12+ writeLine : ( line : string | undefined ) =>
13+ internalContent . push ( `${ line ?? '' } \n` ) ,
14+ toContent : ( ) => internalContent . join ( '' ) ,
15+ } ;
16+ } ;
17+
818const renderLanguage = async (
919 writer : ContentWriter ,
1020 definition : InternalMatcherDslDeclaration ,
@@ -71,12 +81,3 @@ export const generateMatcherDocumenation = (
7181 content : content . toContent ( ) ,
7282 } ;
7383} ;
74- const makeContent = ( ) : ContentWriter => {
75- const internalContent : string [ ] = [ ] ;
76-
77- return {
78- writeLine : ( line : string | undefined ) =>
79- internalContent . push ( `${ line ?? '' } \n` ) ,
80- toContent : ( ) => internalContent . join ( '' ) ,
81- } ;
82- } ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const mdGenerator: LanguageGenerator = {
1515 }
1616 return [ ] ;
1717 } ) ,
18- generateExample : function ( ) : Promise < string > {
18+ generateExample : ( ) : Promise < string > = > {
1919 throw new Error ( 'Function not implemented.' ) ;
2020 } ,
2121} ;
You can’t perform that action at this time.
0 commit comments