1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/cli/dts
Bartek Iwańczuk d8afd56838
feat(test): Add more overloads for "Deno.test" (#12749)
This commit adds 4 more overloads to "Deno.test()" API.

```
// Deno.test(function testName() { });
export function test(fn: (t: TestContext) => void | Promise<void>): void;

// Deno.test("test name", { only: true }, function() { });
export function test(
  name: string,
  options: Omit<TestDefinition, "name">,
  fn: (t: TestContext) => void | Promise<void>,
): void;

// Deno.test({ name: "test name" }, function() { });
export function test(
  options: Omit<TestDefinition, "fn">,
  fn: (t: TestContext) => void | Promise<void>,
): void;

// Deno.test({ only: true }, function testName() { });
export function test(
  options: Omit<TestDefinition, "fn" | "name">,
  fn: (t: TestContext) => void | Promise<void>,
): void;
```
2021-11-23 14:57:51 +01:00
..
lib.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.deno.ns.d.ts feat(test): Add more overloads for "Deno.test" (#12749) 2021-11-23 14:57:51 +01:00
lib.deno.shared_globals.d.ts feat(fmt): add basic JS doc formatting (#11902) 2021-09-02 18:28:12 -04:00
lib.deno.unstable.d.ts feat(cli): support React 17 JSX transforms (#12631) 2021-11-09 12:26:39 +11:00
lib.deno.window.d.ts feat(runtime): implement navigator.hardwareConcurrency (#11448) 2021-07-29 21:45:11 +02:00
lib.deno.worker.d.ts feat(extensions/web): add structuredClone function (#11572) 2021-08-09 10:39:00 +02:00
lib.dom.asynciterable.d.ts fix(cli): add lib dom.asynciterable (#9288) 2021-01-29 06:41:30 +11:00
lib.dom.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.dom.iterable.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.es5.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.es6.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2015.collection.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2015.core.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.es2015.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2015.generator.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2015.iterable.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.es2015.promise.d.ts feat(cli): update to TypeScript 4.1 (#7573) 2020-11-24 09:31:10 +11:00
lib.es2015.proxy.d.ts feat(cli): update to TypeScript 4.2 (#9341) 2021-02-25 15:16:19 +11:00
lib.es2015.reflect.d.ts feat(cli): update to TypeScript 4.2 (#9341) 2021-02-25 15:16:19 +11:00
lib.es2015.symbol.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2015.symbol.wellknown.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.es2016.array.include.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2016.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2016.full.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2017.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2017.full.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2017.intl.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2017.object.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2017.sharedmemory.d.ts feat(cli): update to TypeScript 4.1 (#7573) 2020-11-24 09:31:10 +11:00
lib.es2017.string.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2017.typedarrays.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2018.asyncgenerator.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2018.asynciterable.d.ts feat(cli): upgrade to TypeScript 4.3 (#9960) 2021-05-28 09:33:11 +10:00
lib.es2018.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2018.full.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2018.intl.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2018.promise.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2018.regexp.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2019.array.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2019.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2019.full.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2019.object.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2019.string.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2019.symbol.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2020.bigint.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.es2020.d.ts feat(cli): update to TypeScript 4.1 (#7573) 2020-11-24 09:31:10 +11:00
lib.es2020.full.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2020.intl.d.ts feat(cli): upgrade to TypeScript 4.3 (#9960) 2021-05-28 09:33:11 +10:00
lib.es2020.promise.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2020.sharedmemory.d.ts feat(cli): update to TypeScript 4.1 (#7573) 2020-11-24 09:31:10 +11:00
lib.es2020.string.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.es2020.symbol.wellknown.d.ts feat(cli): upgrade to TypeScript 4.3 (#9960) 2021-05-28 09:33:11 +10:00
lib.es2021.d.ts feat(cli): upgrade to TypeScript 4.3 (#9960) 2021-05-28 09:33:11 +10:00
lib.es2021.full.d.ts feat(cli): upgrade to TypeScript 4.3 (#9960) 2021-05-28 09:33:11 +10:00
lib.es2021.promise.d.ts feat(cli): upgrade to TypeScript 4.3 (#9960) 2021-05-28 09:33:11 +10:00
lib.es2021.string.d.ts feat(cli): upgrade to TypeScript 4.3 (#9960) 2021-05-28 09:33:11 +10:00
lib.es2021.weakref.d.ts feat(cli): upgrade to TypeScript 4.3 (#9960) 2021-05-28 09:33:11 +10:00
lib.esnext.array.d.ts feat: update to V8 9.7 (#12685) 2021-11-08 14:24:54 +01:00
lib.esnext.d.ts feat: add new esnext types (#11627) 2021-08-10 10:33:08 +02:00
lib.esnext.error.d.ts feat: add new esnext types (#11627) 2021-08-10 10:33:08 +02:00
lib.esnext.full.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.esnext.intl.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.esnext.object.d.ts feat: add new esnext types (#11627) 2021-08-10 10:33:08 +02:00
lib.esnext.promise.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.esnext.string.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.esnext.weakref.d.ts feat(cli): update to TypeScript 4.1 (#7573) 2020-11-24 09:31:10 +11:00
lib.scripthost.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.webworker.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
lib.webworker.importscripts.d.ts Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
lib.webworker.iterable.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00
README.md chore: fixed various misspellings and other typos (#8691) 2020-12-11 06:45:45 +11:00
typescript.d.ts feat(cli): Update to TypeScript 4.4 (#11678) 2021-08-27 10:12:59 +10:00

How to upgrade TypeScript.

The files in this directory are mostly from the TypeScript repository. We currently (unfortunately) have a rather manual process for upgrading TypeScript. It works like this currently:

  1. Checkout typescript repo in a separate directory.
  2. Copy typescript.js into Deno repo.
  3. Copy d.ts files into dts directory.

So that might look something like this:

git clone https://github.com/microsoft/TypeScript.git
cd typescript
git checkout v3.9.7
rsync lib/typescript.js ~/src/deno/cli/tsc/00_typescript.js
rsync --exclude=protocol.d.ts --exclude=tsserverlibrary.d.ts --exclude=typescriptServices.d.ts lib/*.d.ts ~/src/deno/cli/dts/