-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Redux routine: Add types #21313
Redux routine: Add types #21313
Changes from all commits
0ca42c7
e6eb8ae
b3b7f17
fd2457b
2b21f85
38d8017
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
declare module 'rungen' { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @youknowriad Would you be interested in publishing types for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whatever works best for you. I'm also happy to add collaborators on that package, I didn't touch it for some time now 😬 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. Providing the types from the library itself seems ideal to me, although we don't need to wait for it here. |
||
type Control = ( | ||
value: any, | ||
next: any, | ||
iterate: any, | ||
yieldNext: ( result: boolean ) => void, | ||
yieldError: ( err: Error ) => void | ||
) => Promise< boolean > | boolean; | ||
|
||
function create( | ||
...args: any[] | ||
): ( | ||
action: any, | ||
successCallback: ( result: any ) => void, | ||
errorCallaback: () => void | ||
) => void; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"rootDir": "src", | ||
"declarationDir": "build-types", | ||
"noUnusedParameters": false | ||
}, | ||
"include": [ "src/**/*" ] | ||
} | ||
sarayourfriend marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
✨ Love it