Skip to content

bug: Property '[Kind]' is missing in type #1840

@Lilja

Description

@Lilja

Feel free to change title, I'm not sure what is wrong here.

Steps to reproduce

repro link

Behavior with typescript@5.8

npx tsc
(empty - exits successfully)

Behavior with tsgo

$  npx tsgo
src/index.ts:4:22 - error TS2741: Property '[Kind]' is missing in type 'TUnion<[TLiteral<"NORMAL">, TLiteral<"SUPERUSER">]>' but required in type 'TSchema'.

4 type MyType = Static<typeof UserType>
                       ~~~~~~~~~~~~~~~

  node_modules/@sinclair/typebox/build/cjs/type/schema/schema.d.ts:21:5 - '[Kind]' is declared here.
    21     [Kind]: string;
           ~~~~~~


Found 1 error in src/index.ts:4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions