@@ -7,7 +7,7 @@ import type {
77} from 'prettier' ;
88import { printers as estreePrinters } from 'prettier/plugins/estree.js' ;
99
10- import type { Options } from '../options.js' ;
10+ import type { PluginOptions } from '../options.js' ;
1111import {
1212 isGlimmerTemplate ,
1313 isGlimmerTemplateParent ,
@@ -34,7 +34,7 @@ export const printer: Printer<Node | undefined> = {
3434
3535 print (
3636 path : AstPath < Node | undefined > ,
37- options : Options ,
37+ options : PluginOptions ,
3838 print : ( path : AstPath < Node | undefined > ) => doc . builders . Doc ,
3939 args : unknown ,
4040 ) {
@@ -98,22 +98,22 @@ export const printer: Printer<Node | undefined> = {
9898 return async ( textToDoc ) => {
9999 if ( node && isGlimmerTemplate ( node ) ) {
100100 if ( checkPrettierIgnore ( path ) ) {
101- return printRawText ( path , embedOptions as Options ) ;
101+ return printRawText ( path , embedOptions as PluginOptions ) ;
102102 }
103103
104104 try {
105105 const content = await printTemplateContent (
106106 node . extra . template . contents ,
107107 textToDoc ,
108- embedOptions as Options ,
108+ embedOptions as PluginOptions ,
109109 ) ;
110110
111111 const printed = printTemplateTag ( content ) ;
112112 saveCurrentPrintOnSiblingNode ( path , printed ) ;
113113 return printed ;
114114 } catch ( error ) {
115115 console . error ( error ) ;
116- const printed = [ printRawText ( path , embedOptions as Options ) ] ;
116+ const printed = [ printRawText ( path , embedOptions as PluginOptions ) ] ;
117117 saveCurrentPrintOnSiblingNode ( path , printed ) ;
118118 return printed ;
119119 }
@@ -138,7 +138,7 @@ function trimPrinted(printed: doc.builders.Doc[]): void {
138138
139139function printRawText (
140140 { node } : AstPath < Node | undefined > ,
141- options : Options ,
141+ options : PluginOptions ,
142142) : string {
143143 if ( ! node ) {
144144 return '' ;
0 commit comments