Closed btakita closed 4 months ago
Another solution is to add exports for all of the Leaf & Base types.
See https://github.com/microsoft/TypeScript/issues/9944 & https://github.com/microsoft/TypeScript/issues/9944
When I manually add an export to WebSiteLeaf
, the error goes away:
export interface WebSiteLeaf extends WebSiteBase {
"@type": "WebSite";
}
I published the @btakita/schema-dts
package with https://github.com/google/schema-dts/pull/194. I will use this we can find a resolution for this issue.
I was able to resolve the issue by setting composite: false
in my tsconfig.json file.
See https://github.com/microsoft/TypeScript/issues/42873#issuecomment-1143587071
Closing since my issue if fixed.
When declaring an object to be a
WebSite
type, a TS4058 appears.Looking at the source,
WebSiteLeaf
is not in use anywhere else nor is it exported. It seems thatWebSiteLeaf
should be renamed toWebSite
. The intermediate type is not necessary.