-
Notifications
You must be signed in to change notification settings - Fork 79
refactor(pass-style): minor types gardening #2746
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
base: master
Are you sure you want to change the base?
Conversation
packages/pass-style/src/types.d.ts
Outdated
@@ -1,4 +1,5 @@ | |||
/* eslint-disable no-use-before-define */ | |||
import type { Checker as _Checker } from '@endo/common/ident-checker.js'; |
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.
Is this, together with line 208 below export type Checker = _Checker;
, really the best way in type script to import-and-reexport a type from elsewhere?
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.
I defer to @turadg. I don’t recall whether this was a specific limitation for ambient types.
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.
There's a simpler way. I just pushed it.
cfb62c3
to
84f90d8
Compare
84f90d8
to
d82aef8
Compare
d82aef8
to
7d4cd1f
Compare
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.
Good enough in my book, but it would be lovely to have a types.test-d.ts
to validate these type signatures get exported as intended and so we don’t regress. There are some examples of test-d.ts
elsewhere in the repo.
7d4cd1f
to
f34669d
Compare
packages/pass-style/src/types.d.ts
Outdated
@@ -1,4 +1,5 @@ | |||
/* eslint-disable no-use-before-define */ | |||
import type { Checker as _Checker } from '@endo/common/ident-checker.js'; |
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.
There's a simpler way. I just pushed it.
5fd6c37
to
912e36c
Compare
Possibly relevant: #2851 (comment) (cf. #2285) |
Closes: #XXXX
Refs: #XXXX
Description
Security Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations
Compatibility Considerations
Upgrade Considerations