File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
packages/ember-repl/src/compile Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ export function Compiled(
1212 format ?: Format ,
1313 flavor ?: string
1414) : CompileState ;
15- export function Compiled ( markdownText : Input | ( ( ) => Input ) , format : ( ) => Format ) : CompileState ;
15+ export function Compiled (
16+ markdownText : Input | ( ( ) => Input ) ,
17+ format : ( ) => Format
18+ ) : CompileState ;
1619export function Compiled (
1720 markdownText : Input | ( ( ) => Input ) ,
1821 format : ( ) => Format ,
@@ -29,9 +32,14 @@ export function Compiled(
2932 maybeFlavor ?: string | ( ( ) => string )
3033) : CompileState {
3134 return resource ( ( { owner } ) => {
32- const input = typeof markdownText === 'function' ? markdownText ( ) : markdownText ;
33- const format = typeof maybeFormat === 'function' ? maybeFormat ( ) : maybeFormat || 'glimdown' ;
34- const flavor = typeof maybeFlavor === 'function' ? maybeFlavor ( ) : maybeFlavor ;
35+ const input =
36+ typeof markdownText === 'function' ? markdownText ( ) : markdownText ;
37+ const format =
38+ typeof maybeFormat === 'function'
39+ ? maybeFormat ( )
40+ : maybeFormat || 'glimdown' ;
41+ const flavor =
42+ typeof maybeFlavor === 'function' ? maybeFlavor ( ) : maybeFlavor ;
3543
3644 const compiler = getCompiler ( owner ) ;
3745
Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ interface Options {
1717 onCompileStart ?: ( ) => Promise < unknown > | unknown ;
1818}
1919
20- export function compile ( service : CompilerService , text : Input , options : Options ) : CompileState {
20+ export function compile (
21+ service : CompilerService ,
22+ text : Input ,
23+ options : Options
24+ ) : CompileState {
2125 const data = { format : options . format } ;
2226
2327 if ( ! text ) {
You can’t perform that action at this time.
0 commit comments