-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently the return type is string
but it should be string | null
. The function definition is
jsonld-context-parser.js/lib/Util.ts
Lines 145 to 151 in 3704921
public static getContextValueId(contextValue: any): string { | |
if (contextValue === null || typeof contextValue === 'string') { | |
return contextValue; | |
} | |
const id = contextValue['@id']; | |
return id ? id : null; | |
} |
This is a breaking change as it causes type errors in the jsonld-streaming-parser when trying to make the change.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request