google / schema-dts

JSON-LD TypeScript types for Schema.org vocabulary
Apache License 2.0
922 stars 35 forks source link

WithContext: Type '"https://schema.org"' is not assignable to type '"https://schema.org"' #184

Closed DanielHara closed 2 years ago

DanielHara commented 2 years ago

I'm wondering how has anyone been able to use WithContext:

schema-dts@1.1.0
typescript@4.7.2
Screenshot 2022-05-27 at 11 28 24
Eyas commented 2 years ago

The schema is probably unnecessarily strict, but removing the final "/" should give you the right context.

DanielHara commented 2 years ago

Sorry, it's a typo 🙈