Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / experimental-utils / _ts3.4 / dist / eslint-utils / batchedSingleLineTests.d.ts
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts
new file mode 100644 (file)
index 0000000..72d8323
--- /dev/null
@@ -0,0 +1,24 @@
+import { ValidTestCase, InvalidTestCase } from '../ts-eslint';\r
+/**\r
+ * Converts a batch of single line tests into a number of separate test cases.\r
+ * This makes it easier to write tests which use the same options.\r
+ *\r
+ * Why wouldn't you just leave them as one test?\r
+ * Because it makes the test error messages harder to decipher.\r
+ * This way each line will fail separately, instead of them all failing together.\r
+ */\r
+declare function batchedSingleLineTests<TOptions extends Readonly<unknown[]>>(test: ValidTestCase<TOptions>): ValidTestCase<TOptions>[];\r
+/**\r
+ * Converts a batch of single line tests into a number of separate test cases.\r
+ * This makes it easier to write tests which use the same options.\r
+ *\r
+ * Why wouldn't you just leave them as one test?\r
+ * Because it makes the test error messages harder to decipher.\r
+ * This way each line will fail separately, instead of them all failing together.\r
+ *\r
+ * Make sure you have your line numbers correct for error reporting, as it will match\r
+ * the line numbers up with the split tests!\r
+ */\r
+declare function batchedSingleLineTests<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(test: InvalidTestCase<TMessageIds, TOptions>): InvalidTestCase<TMessageIds, TOptions>[];\r
+export { batchedSingleLineTests };\r
+//# sourceMappingURL=batchedSingleLineTests.d.ts.map\r