scriptc coverage tests/coverage-fixtures/node-islands-type-claims/main.ts

  statements analyzed   30
  compile statically    30  (100%)
    in dynamic tier     10  (operate on values typed only at runtime; --explain-dynamic lists them)

  npm package compilation:
    tc-island  static
    tc-native  static

  Node islands   (would-be, report-only: the build is unchanged; --node-islands=auto)
    marked  tc-island@3.1.0 (marked by scriptc.packages)
    1 package stays native: tc-native
    hint: scriptc coverage --explain-island=<package> lists every reason

  fully static — all analyzed statements compile to native code.

  trusts unverified types   14 checked conversions on 10 claims (compiles; a value that contradicts its claimed type throws a TypeError at the conversion)
      ×1  tc-island@3.1.0 declares started() as Date (index.d.ts:8): a Node island value the program reads as Date, which throws for every object the island made
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:32:20
          fix: a Node island's own object never converts to this type: keep the value as the island's by giving it a type the island package declares, or read what the program needs from it through the island's own members
      ×3  parsed data the program reads as { name: string; retries: number }
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:52:12, tests/coverage-fixtures/node-islands-type-claims/main.ts:14:16, tests/coverage-fixtures/node-islands-type-claims/main.ts:15:15
          unseen if it fails: tests/coverage-fixtures/node-islands-type-claims/main.ts:52:12 is in a try whose handler ignores the error, where Node.js keeps the value
          fix: validate the parsed data before giving it this type (a schema, or checks on an unknown value), or declare the type the data really has
      ×2  tc-island@3.1.0 declares Session.ttl as number (index.d.ts:3): a Node island value
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:26:21, tests/coverage-fixtures/node-islands-type-claims/main.ts:27:17
          fix: if the declaration is wrong, patch it: scriptc types patch tc-island Session.ttl '<type>' (a type that starts with | widens the declared one, as in '| undefined')
      ×2  parsed data held in 'raw', read as number
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:18:23, tests/coverage-fixtures/node-islands-type-claims/main.ts:19:24
          fix: validate the parsed data before giving it this type (a schema, or checks on an unknown value), or declare the type the data really has
      ×1  tc-island@3.1.0 declares each(visit) (index.d.ts:7): the Node island calls a function the program passes it, typed (string, number) => void
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:28:18
          fix: if the declaration is wrong, patch it: scriptc types patch tc-island 'each(visit)' '<type>' (a type that starts with | widens the declared one, as in '| undefined')
      ×1  tc-island@3.1.0 declares label() as string (index.d.ts:6): a Node island value
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:35:42
          fix: if the declaration is wrong, patch it: scriptc types patch tc-island 'label()' '<type>' (a type that starts with | widens the declared one, as in '| undefined')
      ×1  tc-island@3.1.0 declares load() as any (index.d.ts:9): a Node island value the program reads as string
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:35:13
          fix: the declaration promises nothing, the program's own type is what is checked: check the value (typeof, in, a schema) before giving it that type, or give the declaration the type it really has: scriptc types patch tc-island 'load()' '<type>'
      ×1  the program asserts the type of 'table()', a value it holds dynamically: { a: { n: number } }
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:45:17
          fix: check the value (typeof, in, a schema) before asserting its type, or build it under a declared type so the checker verifies it
      ×1  'value' is untyped; its values are read as number
          at tests/coverage-fixtures/node-islands-type-claims/main.ts:62:21
          fix: give 'value' the type its values really have where it is declared, or narrow the value (typeof, in, a schema) before typed code reads it
      ×1  tc-native@1.4.2, compiled from its JavaScript: 1 conversion trusts 1 declaration of its own
          at tests/coverage-fixtures/node-islands-type-claims/node_modules/tc-native/index.js:9:10
          fix: run the package in a Node island (--node-island=tc-native), or patch the declaration that is wrong: scriptc types patch tc-native <selector> '<type>' (--print=diagnostics lists each declaration's selector)