-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional direction for literals #38
base: master
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 14f33a2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
data-model.d.ts
Outdated
|
||
export interface DirectionalLanguage { | ||
language: string; | ||
direction?: 'ltr' | 'rtl' | ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what cases would ''
be used as input over undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because direction
can be a falsy value, as discussed in the PR here: rdfjs/data-model-spec#175
That actually reminds me, we should also allow null
here...
951da64
to
14f33a2
Compare
This probably is something we should also (like #6) first discuss in the spec itself? |
Yes, we have rdfjs/data-model-spec#172 and rdfjs/data-model-spec#175 for this. But in any case, I think we'll want to put this on hold until w3c/rdf-concepts#79 is resolved. |
This adds typing support for base directions in literals, as discussed in rdfjs/data-model-spec#175