-
Notifications
You must be signed in to change notification settings - Fork 49.3k
[compiler] Add types for WeakMap, WeakSet, and reanimated shared values #33077
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
Conversation
Building on @mofeiZ's recent work to type constructors. Also, types for reanimated values which are useful in the next PR. [ghstack-poisoned]
…shared values" Building on mofeiz's recent work to type constructors. Also, types for reanimated values which are useful in the next PR. [ghstack-poisoned]
addFunction(BUILTIN_SHAPES, [], { | ||
positionalParams: [Effect.Capture], | ||
restParam: null, | ||
returnType: {kind: 'Object', shapeId: BuiltInSetId}, |
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.
nit: returns BuiltInWeakSetId
addFunction(BUILTIN_SHAPES, [], { | ||
positionalParams: [Effect.Capture, Effect.Capture], | ||
restParam: null, | ||
returnType: {kind: 'Object', shapeId: BuiltInMapId}, |
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.
nit: returns BuiltInWeakMapId
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.
nice! should we also add some test fixtures?
…shared values" Building on mofeiz's recent work to type constructors. Also, types for reanimated values which are useful in the next PR. [ghstack-poisoned]
…shared values" Building on mofeiz's recent work to type constructors. Also, types for reanimated values which are useful in the next PR. [ghstack-poisoned]
good call, added fixtures |
Stack from ghstack (oldest at bottom):
Building on @mofeiZ's recent work to type constructors. Also, types for reanimated values which are useful in the next PR.