Replies: 2 comments
-
Could you please share the JavaScript/TypeScript code which is trying to be mapped by this code? |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://unpkg.com/browse/[email protected]/dist/development/index.d.ts interface NavigateFunction {
(to: To, options?: NavigateOptions): void | Promise<void>;
(delta: number): void | Promise<void>;
}
declare function useNavigate(): NavigateFunction; Also, just found this convenient interface for looking up the types for a lib https://types.kubajastrz.com/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When writing bindings for something like a hook that returns a function, where the returned function takes a params object, it would be convenient to be able to define a delegate that uses
ParamObject
:The alternative is using a type with
Emit("$0($1...)")
(Maybe the second one could also be made prettier and less error prone to type with an
EmitApply
orEmitCall
helper?)Beta Was this translation helpful? Give feedback.
All reactions