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

Add type exports #69

Closed
wants to merge 2 commits into from

Conversation

fehnomenal
Copy link
Contributor

Without this typescript complained at me

package.json Outdated Show resolved Hide resolved
@fehnomenal
Copy link
Contributor Author

Hi @penberg, I fixed some of the sync types to be in line with the actual js code and added async types.

@@ -14,7 +14,6 @@

// FIXME: Is this `any` really necessary?
type VariableArgFunction = (...params: any[]) => unknown;
type ArgumentTypes<F extends VariableArgFunction> = F extends (...args: infer A) => unknown ? A : never;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary to remove these from index.d.ts? I know we don't implement them right now, but I would like to keep them around because we are planning to implement all of them for compatibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, I removed the type as it is the same as the built-in Parameters type. Do you want me to re-add it?

@dswbx
Copy link

dswbx commented Mar 4, 2024

+1, was about to create a PR for this as well

@penberg
Copy link
Contributor

penberg commented Jun 12, 2024

Fixed by f7d550f

@penberg penberg closed this Jun 12, 2024
@fehnomenal fehnomenal deleted the fehnomenal-patch-1 branch June 13, 2024 04:48
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.

None yet

3 participants