-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
The WithContext type accepts all Thing types:
/** Used at the top-level node to indicate the context for the JSON-LD objects used. The context provided in this type is compatible with the keys and URLs in the rest of this generated file. */
export declare type WithContext<T extends Thing> = T & {
"@context": "https://schema.org";
};However, Thing allows string values. For example:
export const thing: Thing = '';It's not possible to intersect string and object, which makes the WithContext type invalid.
Metadata
Metadata
Assignees
Labels
No labels