arktypea
arktype17mo ago
francis

vscode intellisense errors on the same type definition in some files, but not others

e.g. the following type:
const exampleType = type({
  email: "string.email",
});


In some files, this works fine. In others, in the exact same project, this causes the following error:
Type '"string.email"' is not assignable to type '"'string' must reference a module to be accessed using dot syntax "'.
The expected type comes from property 'email' which is declared here on type 'validateObjectLiteral<{ readonly email: "string.email"; }, {}, bindThis<{ readonly email: "string.email"; }>>'


Any ideas for what might be going on?
Was this page helpful?