Ideally it should just print \r or simply remove them, instead of generating 2 \n here.
import { isolatedDeclaration } from 'oxc-transform'
console.log([
isolatedDeclaration('a.ts',
// Simulates windows file line-ending.
[
'/**',
' * Comment.',
' */',
'export const a: number = 1;'
].join('\r\n')
).code
])
// → [ '/**\n\n* Comment.\n\n*/\nexport declare const a: number;\n' ]