Skip to content
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

v0 for runtime derived properties #977

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

nihalbhatnagar
Copy link
Contributor

No description provided.

@nihalbhatnagar nihalbhatnagar changed the title Initial v0 for runtime derived properties v0 for runtime derived properties Nov 19, 2024
D extends DeriveClause<K>,
> = {
__DefinitionMetadata: {
properties: { [T in Extract<keyof D, string>]: PropertyDef<"integer"> };
Copy link
Contributor Author

@nihalbhatnagar nihalbhatnagar Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PropertyDef<"integer"> : This is the fun part to figure out

@@ -245,4 +247,24 @@ export interface ObjectSet<
properties: Array<P>,
listener: EXPERIMENTAL_ObjectSetListener<Q, P>,
) => { unsubscribe: () => void };

readonly derive: <
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure of the best way to gate this. I want this to be on object set since I want to ensure you can do stuff to an object set before it. Is it crazy to leave this ungated on beta(only merged when e2e works ofc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant