# https://jsr.io/@scope/a/meta.json
{"versions": { "1.0.0": {} } }

# https://jsr.io/@scope/a/1.0.0_meta.json
{ "exports": { ".": "./mod.ts" } }

# https://jsr.io/@scope/a/1.0.0/mod.ts
import type { Foo, Bar } from "./b.ts";

export class Foo {
  fizz = (a: string) => "test";
  foo = () => "test" as Foo;
  bar = (b: Bar) => 1;
  bax = function(b: Bax) { return; };
}

# https://jsr.io/@scope/a/1.0.0/b.ts
export type Foo = string;
export type Bar = string;

# mod.ts
import 'jsr:@scope/a'

# output
{
  "roots": [
    "file:///mod.ts"
  ],
  "modules": [
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "jsr:@scope/a",
          "code": {
            "specifier": "jsr:@scope/a",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 7
              },
              "end": {
                "line": 0,
                "character": 21
              }
            }
          }
        }
      ],
      "size": 22,
      "mediaType": "TypeScript",
      "specifier": "file:///mod.ts"
    },
    {
      "kind": "esm",
      "size": 52,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "./b.ts",
          "type": {
            "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 30
              },
              "end": {
                "line": 0,
                "character": 38
              }
            }
          }
        }
      ],
      "size": 184,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/a/1.0.0/mod.ts"
    }
  ],
  "redirects": {
    "jsr:@scope/a": "https://jsr.io/@scope/a/1.0.0/mod.ts"
  },
  "packages": {
    "@scope/a@*": "@scope/a@1.0.0"
  }
}

Fast check https://jsr.io/@scope/a/1.0.0/b.ts:
  {}
  export type Foo = string;
  export type Bar = string;
  --- DTS ---
  export type Foo = string;
  export type Bar = string;

Fast check https://jsr.io/@scope/a/1.0.0/mod.ts:
  {
    "./b.ts": {
      "type": {
        "specifier": "https://jsr.io/@scope/a/1.0.0/b.ts",
        "resolutionMode": "import",
        "span": {
          "start": {
            "line": 0,
            "character": 30
          },
          "end": {
            "line": 0,
            "character": 38
          }
        }
      }
    }
  }
  import type { Foo, Bar } from "./b.ts";
  export class Foo {
    fizz = (a: string): string =>({} as never);
    foo = (): Foo =>({} as never);
    bar = (b: Bar): number =>({} as never);
    bax = function(b: Bax): void {};
  }
  --- DTS ---
  import type { Foo, Bar } from "./b.ts";
  export declare class Foo {
    fizz: (a: string) => string;
    foo: () => Foo;
    bar: (b: Bar) => number;
    bax: (b: Bax) => void;
  }
