disable checks in generated files (#585)

This commit is contained in:
Dima 2022-10-28 13:57:53 +03:00 committed by GitHub
parent a5cd947159
commit b73b72b2de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -18,14 +18,17 @@ case class JavaScriptBackend(isCommonJS: Boolean) extends Backend {
val functions =
res.funcs.map(f => TypeScriptTypes.funcType(f)).map(_.generate).toList.mkString("\n")
val body = s"""${Header.header(true, false)}
val body = s"""/* eslint-disable */
|// @ts-nocheck
|${Header.header(true, false)}
|
|// Services
|$services
|
|// Functions
|$functions
|""".stripMargin
|
|/* eslint-enable */""".stripMargin
Generated(tsExt, body, Nil)
}

View File

@ -5,12 +5,15 @@ import aqua.res.AquaRes
case class TypeScriptTypesFile(res: AquaRes) {
def generate: String =
s"""${Header.header(false, false)}
s"""/* eslint-disable */
|// @ts-nocheck
|${Header.header(false, false)}
|
|// Services
|${res.services.map(TSServiceTypes(_)).map(_.generate).toList.mkString("\n\n")}
|
|// Functions
|${res.funcs.map(TSFuncTypes(_)).map(_.generate).toList.mkString("\n\n")}
|""".stripMargin
|
|/* eslint-enable */""".stripMargin
}