# 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
export const foo = [1, 2] as const;
export const bar = [1, , 2] as const;
export const obj = {
  str: "bar",
  bool: true,
  bool2: false,
  num: 42,
  nullish: null
} as const;

export const spread = {
  foo: 1,
  ...obj,
} as const;

# 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": 235,
      "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/mod.ts:
  {}
  export const foo = [
    1,
    2
  ] as const;
  export const bar = [
    1,
    ,
    2
  ] as const;
  export const obj = {
    str: "bar",
    bool: true,
    bool2: false,
    num: 42,
    nullish: null
  } as const;
  export const spread = {
    foo: 1,
    ...obj
  } as const;
  --- DTS ---
  export declare const foo: readonly [1, 2];
  export declare const bar: readonly [1, any, 2];
  export declare const obj: {
    readonly str: "bar";
    readonly bool: true;
    readonly bool2: false;
    readonly num: 42;
    readonly nullish: null;
  };
  export declare const spread: {
    readonly foo: 1;
  };
  --- DTS Diagnostics ---
  unable to infer type from spread, skipping
      at https://jsr.io/@scope/a/1.0.0/mod.ts@215
