We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e8cb1 commit 1633effCopy full SHA for 1633eff
scripts/danger-dts.ts
@@ -13,10 +13,8 @@ const createDTS = () => {
13
14
import * as GitHub from "@octokit/rest"
15
16
-declare module "danger" {
17
-`
18
- const footer = `}
19
`
+ const footer = ``
20
21
let fileOutput = ""
22
@@ -80,7 +78,7 @@ declare module "danger" {
80
78
const noRedundantExports = trimmedWhitespaceLines
81
79
.replace(/export interface/g, "interface")
82
.replace(/export type/g, "type")
83
- const indentedBody = mapLines(noRedundantExports, line => (line.length ? ` ${line}` : ""))
+ const indentedBody = mapLines(noRedundantExports, line => (line.length ? line : ""))
84
return header + indentedBody + footer
85
}
86
0 commit comments