Skip to content

Instantly share code, notes, and snippets.

@mpontus
Created December 28, 2021 19:18
Show Gist options
  • Save mpontus/7a50599f4741ea58badc3bced14ba561 to your computer and use it in GitHub Desktop.
Save mpontus/7a50599f4741ea58badc3bced14ba561 to your computer and use it in GitHub Desktop.
declare function sequence<A, B>(s: { [K in keyof A]: (b: B) => A[K] }): ((b: B) => A);// [K in keyof S]: ()
const s = sequence({
typography(theme: Theme) {
return sequence({
foo() {
return theme.space[0].toString();
}
})(theme)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment