Package prefixes tried for an unqualified name. Defaults to
java.lang, matching Java's implicit import.
Check if type is registered
Convenience: register a JavaScript constructor as a type. Automatically creates a TypeDescriptor wrapping the constructor.
Add a package prefix for unqualified names, mirroring Spring's
registerImport.
Parallels Spring StandardTypeLocator.
Resolves the names used by
T(...),instanceofandnew ....Two behaviours matter and both mirror Spring:
java.langis imported implicitly, soT(String)andT(java.lang.String)are the same type. An unqualified name that is not found is retried with each registered prefix.java-types.ts). Where Spring consults a class loader, this port has a registry, so a type that is not registered raisesTYPE_NOT_FOUNDrather than being loaded on demand.