-
Notifications
You must be signed in to change notification settings - Fork 418
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
CB-3798 poc api for visibility of properties #3311
base: devel
Are you sure you want to change the base?
Conversation
b520932
to
d6c59c9
Compare
…els-refactoring
…els-refactoring
}) { | ||
const translate = useTranslate(); | ||
|
||
let readonly = rest.readOnly; |
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.
It is a strange move with read-only. Let's revert it as it was from props as readOnly
, then you can change it if needed (it's not props mutation)
|
||
const UNDEFINED_MAPPER_VALUE = new Array(2).fill(undefined, 1); | ||
token('undefined', 20, a => (a ? err() : UNDEFINED_MAPPER_VALUE)); | ||
token('null', 20, a => (a ? err() : UNDEFINED_MAPPER_VALUE)); |
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.
It is a bit strange that we treat null as an undefined
import 'subscript/feature/bool.js'; | ||
|
||
const UNDEFINED_MAPPER_VALUE = new Array(2).fill(undefined, 1); | ||
token('undefined', 20, a => (a ? err() : UNDEFINED_MAPPER_VALUE)); |
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.
why not use token('undefined', 20, a => a ? err() : [, undefined])
as in original example?
https://github.com/dy/subscript?tab=readme-ov-file#extending
object: Record<string, any>; | ||
} | ||
|
||
export function evaluate(expression: string, object: Record<string, any>) { |
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.
please fix linter
No description provided.